Mikołaj Zalewski : shell32: Fix the nBufferMax param of LoadStringW calls from SHELL_ConfirmDialogW.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 21 05:25:14 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 5de24f03209768dad79150b9d262df0d84eb7560
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=5de24f03209768dad79150b9d262df0d84eb7560

Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date:   Tue Jun 20 21:58:20 2006 +0200

shell32: Fix the nBufferMax param of LoadStringW calls from SHELL_ConfirmDialogW.

---

 dlls/shell32/shlfileop.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/shlfileop.c b/dlls/shell32/shlfileop.c
index 5b650e7..b5e2e74 100644
--- a/dlls/shell32/shlfileop.c
+++ b/dlls/shell32/shlfileop.c
@@ -103,8 +103,8 @@ BOOL SHELL_ConfirmDialogW(int nKindOfDia
 	if (!SHELL_ConfirmIDs(nKindOfDialog, &ids))
 	  return FALSE;
 
-	LoadStringW(shell32_hInstance, ids.caption_resource_id, szCaption, sizeof(szCaption));
-	LoadStringW(shell32_hInstance, ids.text_resource_id, szText, sizeof(szText));
+	LoadStringW(shell32_hInstance, ids.caption_resource_id, szCaption, sizeof(szCaption)/sizeof(WCHAR));
+	LoadStringW(shell32_hInstance, ids.text_resource_id, szText, sizeof(szText)/sizeof(WCHAR));
 
 	FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ARGUMENT_ARRAY,
 	               szText, 0, 0, szBuffer, sizeof(szBuffer), (va_list*)&szDir);




More information about the wine-cvs mailing list