Commit 11705f56 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

winedbg: LoadStringw gets character size, not bytes.

parent c8dd507b
...@@ -153,11 +153,11 @@ static void save_crash_log( HWND hwnd ) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment