mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-15 03:27:35 +01:00
GUI: Ensure file path for SHFileOperation
is ended with 2 zeros
This commit is contained in:
parent
f34c6540a6
commit
8b7ea20861
@ -19,7 +19,8 @@ int GUI_DeleteWeatherFolder()
|
||||
WCHAR wszWorkFolder[MAX_PATH + 1];
|
||||
ZeroMemory(wszWorkFolder, (MAX_PATH + 1) * sizeof(WCHAR));
|
||||
SHGetFolderPathW(NULL, CSIDL_APPDATA, NULL, SHGFP_TYPE_CURRENT, wszWorkFolder);
|
||||
wcscat_s(wszWorkFolder, MAX_PATH, L"\\ExplorerPatcher\\ep_weather_host");
|
||||
wcscat_s(wszWorkFolder, MAX_PATH + 1, L"\\ExplorerPatcher\\ep_weather_host");
|
||||
wszWorkFolder[wcslen(wszWorkFolder) + 1] = 0;
|
||||
SHFILEOPSTRUCTW op;
|
||||
ZeroMemory(&op, sizeof(SHFILEOPSTRUCTW));
|
||||
op.wFunc = FO_DELETE;
|
||||
|
Loading…
Reference in New Issue
Block a user