Commit fde563b0 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

wordpad: Use correct buffer size when calling SHGetFolderPathW() (Coverity).

parent 91c3e75b
......@@ -154,9 +154,9 @@ static void format_filelist_filename(LPWSTR file, LPWSTR out)
{
LPWSTR pos_basename;
LPWSTR truncpos1, truncpos2;
WCHAR myDocs[MAX_STRING_LEN];
WCHAR myDocs[MAX_PATH];
SHGetFolderPathW(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, (LPWSTR)&myDocs);
SHGetFolderPathW(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, myDocs);
pos_basename = file_basename(file);
truncpos1 = NULL;
truncpos2 = NULL;
......
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