Author: cwittich
Date: Mon Oct 20 10:05:30 2014
New Revision: 64844
URL:
http://svn.reactos.org/svn/reactos?rev=64844&view=rev
Log:
[explorer]
DragQueryFile expects size in characters
Modified:
trunk/reactos/base/shell/explorer/desktop/desktop.h
Modified: trunk/reactos/base/shell/explorer/desktop/desktop.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/deskto…
==============================================================================
--- trunk/reactos/base/shell/explorer/desktop/desktop.h [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/desktop/desktop.h [iso-8859-1] Mon Oct 20 10:05:30
2014
@@ -110,7 +110,7 @@
UINT cFiles = DragQueryFile(hDrop, 0xFFFFFFFF, NULL, 0);
for(UINT i=0; i<cFiles; ++i) {
- DragQueryFile(hDrop, i, szFileName, sizeof(szFileName));
+ DragQueryFile(hDrop, i, szFileName, sizeof(szFileName) / sizeof(szFileName[0]));
if (DROPEFFECT_COPY & *pdwEffect) {
// copy the file or dir