This commit is contained in:
Paddy Xu
2020-08-16 00:45:22 +02:00
parent a41a7bd24d
commit 7fc6e03ffa
11 changed files with 27 additions and 19 deletions

View File

@@ -60,7 +60,10 @@ void HelperMethods::ObtainFirstItem(CComPtr<IDataObject> dao, PWCHAR buffer)
if (n < 1)
return;
DragQueryFile(HDROP(medium.hGlobal), 0, buffer, MAX_PATH - 1);
WCHAR localBuffer[MAX_PATH] = { '\0' };
DragQueryFile(HDROP(medium.hGlobal), 0, localBuffer, MAX_PATH);
GetLongPathName(localBuffer, buffer, MAX_PATH_EX);
}
bool HelperMethods::IsListaryToolbarVisible()