Torge Matthies : shell32: Fix getting file attributes from the file system in SHELL32_GetItemAttributes.

Alexandre Julliard julliard at winehq.org
Thu Nov 11 16:01:29 CST 2021


Module: wine
Branch: master
Commit: 3dbce69fd4cc8f4802479939d2cf50905b79f5a3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3dbce69fd4cc8f4802479939d2cf50905b79f5a3

Author: Torge Matthies <openglfreak at googlemail.com>
Date:   Thu Nov 11 00:18:22 2021 +0100

shell32: Fix getting file attributes from the file system in SHELL32_GetItemAttributes.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52017
Signed-off-by: Torge Matthies <openglfreak at googlemail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/shell32/shlfolder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/shell32/shlfolder.c b/dlls/shell32/shlfolder.c
index ce7fc072fa3..10aafc160c0 100644
--- a/dlls/shell32/shlfolder.c
+++ b/dlls/shell32/shlfolder.c
@@ -417,7 +417,7 @@ HRESULT SHELL32_GetItemAttributes (IShellFolder2 *psf, LPCITEMIDLIST pidl, LPDWO
     } else if (_ILGetDataPointer (pidl)) {
 	DWORD file_attr = _ILGetFileAttributes (pidl, NULL, 0);
 
-        if (!file_attr && has_guid) {
+        if (!file_attr) {
 	    WCHAR path[MAX_PATH];
 	    STRRET strret;
 




More information about the wine-cvs mailing list