Marcus Meissner : winedbg: LoadStringw gets character size, not bytes.
Alexandre Julliard
julliard at winehq.org
Thu Jan 19 14:56:52 CST 2012
Module: wine
Branch: master
Commit: 11705f569ca931d3e138a6d3a3f0796dc67aa3a0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=11705f569ca931d3e138a6d3a3f0796dc67aa3a0
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Wed Jan 18 22:40:25 2012 +0100
winedbg: LoadStringw gets character size, not bytes.
---
programs/winedbg/crashdlg.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/winedbg/crashdlg.c b/programs/winedbg/crashdlg.c
index 1f73979..fe13502 100644
--- a/programs/winedbg/crashdlg.c
+++ b/programs/winedbg/crashdlg.c
@@ -153,11 +153,11 @@ static void save_crash_log( HWND hwnd )
memset( &save, 0, sizeof(save) );
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;
lstrcpyW(p, txt_files);
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;
lstrcpyW(p, all_files);
p += lstrlenW(p) + 1;
More information about the wine-cvs
mailing list