[PATCH] shell32: pass correct size to MultiByteToWideChar

Marcus Meissner marcus at jet.franken.de
Sun Oct 24 05:04:12 CDT 2010


Hi,

size is in characters, not bytes.

Ciao, Marcus
---
 dlls/shell32/tests/brsfolder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/shell32/tests/brsfolder.c b/dlls/shell32/tests/brsfolder.c
index e9a6e2c..16d4597 100644
--- a/dlls/shell32/tests/brsfolder.c
+++ b/dlls/shell32/tests/brsfolder.c
@@ -198,7 +198,7 @@ static void test_click_make_new_folder_button(void)
     bi.lpfn = create_new_folder_callback;
     /* Use test folder as the root folder for dialog box */
     MultiByteToWideChar(CP_UTF8, 0, test_folder_path, MAX_PATH,
-        test_folder_pathW, MAX_PATH*sizeof(WCHAR));
+        test_folder_pathW, MAX_PATH);
     SHGetDesktopFolder(&test_folder_object);
     test_folder_object->lpVtbl->ParseDisplayName(test_folder_object, NULL, NULL,
         test_folder_pathW, 0UL, &test_folder_pidl, 0UL);
-- 
1.7.1



More information about the wine-patches mailing list