| 2288 | } |
| 2289 | } |
| 2290 | VOID HL_WTrace2 ( const char *fmt , LPCWSTR word1 , LPCWSTR word2 ) |
| 2291 | { |
| 2292 | if ( _hL_log ) { |
| 2293 | int size ; |
| 2294 | char *temp , *temp2; |
| 2295 | SYSTEMTIME st; |
| 2296 | // |
| 2297 | GetLocalTime ( &st ); |
| 2298 | fprintf ( _hL_log , "- [%d:%d:%d] " , st.wMinute , st.wSecond , st.wMilliseconds ); |
| 2299 | // |
| 2300 | temp = HL_Alloc ( size = WideCharToMultiByte ( CP_UTF8 , 0 , word1 , -1 , NULL , 0 , NULL, NULL ) ); |
| 2301 | WideCharToMultiByte ( CP_UTF8 , 0 , word1 , -1 , temp , size , NULL, NULL ); |
| 2302 | temp2 = HL_Alloc ( size = WideCharToMultiByte ( CP_UTF8 , 0 , word2 , -1 , NULL , 0 , NULL, NULL ) ); |
| 2303 | WideCharToMultiByte ( CP_UTF8 , 0 , word2 , -1 , temp2 , size , NULL, NULL ); |
| 2304 | fprintf ( _hL_log , fmt , temp , temp2 ); |
| 2305 | HL_Free ( temp ); |
| 2306 | HL_Free ( temp2 ); |
| 2307 | // |
| 2308 | fprintf ( _hL_log , "\r\n" ); |
| 2309 | fflush ( _hL_log ); |
| 2310 | } |
| 2311 | } |
| 2312 | BOOL HL_Test_offset_tail ( WCHAR *wch ) |
| 2313 | { |
| 2314 | while ( *wch ) { |