Rob Shearman : shell32: Fix the character count passed into LoadStringW in ISFHelper_fnAddFolder.
Alexandre Julliard
julliard at winehq.org
Sat Feb 16 09:57:25 CST 2008
Module: wine
Branch: master
Commit: 8aa361740e48fada8b6667976d35d706e9977dca
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8aa361740e48fada8b6667976d35d706e9977dca
Author: Rob Shearman <rob at codeweavers.com>
Date: Fri Feb 15 10:06:20 2008 +0000
shell32: Fix the character count passed into LoadStringW in ISFHelper_fnAddFolder.
---
dlls/shell32/shfldr_fs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/shfldr_fs.c b/dlls/shell32/shfldr_fs.c
index 830013b..94080d0 100644
--- a/dlls/shell32/shfldr_fs.c
+++ b/dlls/shell32/shfldr_fs.c
@@ -1155,9 +1155,9 @@ ISFHelper_fnAddFolder (ISFHelper * iface, HWND hwnd, LPCWSTR pwszName,
/* Cannot Create folder because of permissions */
LoadStringW (shell32_hInstance, IDS_CREATEFOLDER_DENIED, wszTempText,
- sizeof (wszTempText));
+ sizeof (wszTempText)/sizeof (wszTempText[0]));
LoadStringW (shell32_hInstance, IDS_CREATEFOLDER_CAPTION, wszCaption,
- sizeof (wszCaption));
+ sizeof (wszCaption)/sizeof (wszCaption[0]));
sprintfW (wszText, wszTempText, wszNewDir);
MessageBoxW (hwnd, wszText, wszCaption, MB_OK | MB_ICONEXCLAMATION);
}
More information about the wine-cvs
mailing list