From b7828ac4783693e653eb936572b618a0eed83081 Mon Sep 17 00:00:00 2001 From: Sander van Leeuwen Date: Sun, 2 Jun 2002 21:23:45 +0000 Subject: [PATCH] Fixed wrong cast; MSDN says lpDropFileStruct->pFiles is offset in bytes (regardless of ascii/unicode). --- dlls/shell32/shellole.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/shellole.c b/dlls/shell32/shellole.c index 5158053f7af..2704ca45644 100644 --- a/dlls/shell32/shellole.c +++ b/dlls/shell32/shellole.c @@ -627,7 +627,7 @@ UINT WINAPI DragQueryFileW( if(!lpDropFileStruct) goto end; - lpwDrop = (LPWSTR) lpDropFileStruct + lpDropFileStruct->pFiles; + lpwDrop = (LPWSTR) ((LPSTR)lpDropFileStruct + lpDropFileStruct->pFiles); i = 0; while (i++ < lFile)