Commit f5518eb3 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

shell32: Pass correct size to MultiByteToWideChar.

parent 5b09820d
...@@ -198,7 +198,7 @@ static void test_click_make_new_folder_button(void) ...@@ -198,7 +198,7 @@ static void test_click_make_new_folder_button(void)
bi.lpfn = create_new_folder_callback; bi.lpfn = create_new_folder_callback;
/* Use test folder as the root folder for dialog box */ /* Use test folder as the root folder for dialog box */
MultiByteToWideChar(CP_UTF8, 0, test_folder_path, MAX_PATH, 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); SHGetDesktopFolder(&test_folder_object);
test_folder_object->lpVtbl->ParseDisplayName(test_folder_object, NULL, NULL, test_folder_object->lpVtbl->ParseDisplayName(test_folder_object, NULL, NULL,
test_folder_pathW, 0UL, &test_folder_pidl, 0UL); test_folder_pathW, 0UL, &test_folder_pidl, 0UL);
......
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