Rebase against f4a8ad89d43646a8d109da5747dfb1a92a6d8cd1.

This commit is contained in:
Alistair Leslie-Hughes
2023-07-05 13:05:46 +10:00
parent b97718a0a9
commit 6882ba5e7b
12 changed files with 79 additions and 97 deletions

View File

@@ -432,7 +432,7 @@ index 14cd9aeeebe..ed3a07c423d 100644
+ if (FAILED(IDataObject_GetData(pDo, &format, &stgm)))
+ return;
+
+ if (!(len = DragQueryFileW((HDROP)stgm.DUMMYUNIONNAME.hGlobal, 0, NULL, 0)))
+ if (!(len = DragQueryFileW((HDROP)stgm.hGlobal, 0, NULL, 0)))
+ {
+ ReleaseStgMedium(&stgm);
+ return;
@@ -444,7 +444,7 @@ index 14cd9aeeebe..ed3a07c423d 100644
+ return;
+ }
+
+ len = DragQueryFileW((HDROP)stgm.DUMMYUNIONNAME.hGlobal, 0, path, len + 1);
+ len = DragQueryFileW((HDROP)stgm.hGlobal, 0, path, len + 1);
+ ReleaseStgMedium(&stgm);
+ if (!len) goto done;
+