Commit 5de24f03 authored by Mikołaj Zalewski's avatar Mikołaj Zalewski Committed by Alexandre Julliard

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

parent dbdb8e2e
...@@ -103,8 +103,8 @@ BOOL SHELL_ConfirmDialogW(int nKindOfDialog, LPCWSTR szDir) ...@@ -103,8 +103,8 @@ BOOL SHELL_ConfirmDialogW(int nKindOfDialog, LPCWSTR szDir)
if (!SHELL_ConfirmIDs(nKindOfDialog, &ids)) if (!SHELL_ConfirmIDs(nKindOfDialog, &ids))
return FALSE; return FALSE;
LoadStringW(shell32_hInstance, ids.caption_resource_id, szCaption, sizeof(szCaption)); LoadStringW(shell32_hInstance, ids.caption_resource_id, szCaption, sizeof(szCaption)/sizeof(WCHAR));
LoadStringW(shell32_hInstance, ids.text_resource_id, szText, sizeof(szText)); LoadStringW(shell32_hInstance, ids.text_resource_id, szText, sizeof(szText)/sizeof(WCHAR));
FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ARGUMENT_ARRAY, FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ARGUMENT_ARRAY,
szText, 0, 0, szBuffer, sizeof(szBuffer), (va_list*)&szDir); szText, 0, 0, szBuffer, sizeof(szBuffer), (va_list*)&szDir);
......
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