[SHLWAPI] Import Wine commit c8175e6c7a7 (Fix Stat() method for file streams) by...
authorThomas Faber <thomas.faber@reactos.org>
Sun, 8 Sep 2019 09:22:22 +0000 (11:22 +0200)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 22 Sep 2019 09:42:01 +0000 (11:42 +0200)
Fixes crash in shlwapi_winetest:istream.

dll/win32/shlwapi/istream.c

index 946d2c8..e773599 100644 (file)
@@ -298,7 +298,7 @@ static HRESULT WINAPI IStream_fnStat(IStream *iface, STATSTG* lpStat,
 
     TRACE("(%p,%p,%d)\n", This, lpStat, grfStatFlag);
 
-    if (!grfStatFlag)
+    if (!lpStat)
         return STG_E_INVALIDPOINTER;
 
     memset(&fi, 0, sizeof(fi));