https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cfc5b3749fd4e3366fdfa033f80730032207e8b7

commit cfc5b3749fd4e3366fdfa033f80730032207e8b7
Author:     Thomas Faber <[email protected]>
AuthorDate: Sun Sep 8 11:22:22 2019 +0200
Commit:     Thomas Faber <[email protected]>
CommitDate: Sun Sep 22 11:42:01 2019 +0200

    [SHLWAPI] Import Wine commit c8175e6c7a7 (Fix Stat() method for file 
streams) by Nikolay Sivov.
    
    Fixes crash in shlwapi_winetest:istream.
---
 dll/win32/shlwapi/istream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dll/win32/shlwapi/istream.c b/dll/win32/shlwapi/istream.c
index 946d2c84b6e..e773599c45f 100644
--- a/dll/win32/shlwapi/istream.c
+++ b/dll/win32/shlwapi/istream.c
@@ -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));

Reply via email to