winedbg: LoadStringw gets character size, not bytes.
This commit is contained in:
parent
c8dd507b62
commit
11705f569c
|
@ -153,11 +153,11 @@ static void save_crash_log( HWND hwnd )
|
||||||
memset( &save, 0, sizeof(save) );
|
memset( &save, 0, sizeof(save) );
|
||||||
lstrcpyW( path, default_name );
|
lstrcpyW( path, default_name );
|
||||||
|
|
||||||
LoadStringW( GetModuleHandleW(0), IDS_TEXT_FILES, buffer, sizeof(buffer) );
|
LoadStringW( GetModuleHandleW(0), IDS_TEXT_FILES, buffer, sizeof(buffer)/sizeof(buffer[0]) );
|
||||||
p = buffer + lstrlenW(buffer) + 1;
|
p = buffer + lstrlenW(buffer) + 1;
|
||||||
lstrcpyW(p, txt_files);
|
lstrcpyW(p, txt_files);
|
||||||
p += lstrlenW(p) + 1;
|
p += lstrlenW(p) + 1;
|
||||||
LoadStringW( GetModuleHandleW(0), IDS_ALL_FILES, p, sizeof(buffer) - (p - buffer) );
|
LoadStringW( GetModuleHandleW(0), IDS_ALL_FILES, p, sizeof(buffer)/sizeof(buffer[0]) - (p - buffer) );
|
||||||
p += lstrlenW(p) + 1;
|
p += lstrlenW(p) + 1;
|
||||||
lstrcpyW(p, all_files);
|
lstrcpyW(p, all_files);
|
||||||
p += lstrlenW(p) + 1;
|
p += lstrlenW(p) + 1;
|
||||||
|
|
Loading…
Reference in New Issue