Michael Stefaniuc : comdlg32: Simplify check for an empty string ( PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Tue Nov 18 10:25:19 CST 2014


Module: wine
Branch: master
Commit: b4b58a82e3ddddbc0bc5837b912bd85966501e1a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b4b58a82e3ddddbc0bc5837b912bd85966501e1a

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Nov 18 10:18:20 2014 +0100

comdlg32: Simplify check for an empty string (PVS-Studio).

---

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

diff --git a/dlls/comdlg32/filedlgbrowser.c b/dlls/comdlg32/filedlgbrowser.c
index 499ebb7..eed34f5 100644
--- a/dlls/comdlg32/filedlgbrowser.c
+++ b/dlls/comdlg32/filedlgbrowser.c
@@ -942,7 +942,7 @@ static HRESULT WINAPI IShellBrowserImpl_ICommDlgBrowser_IncludeObject(ICommDlgBr
         return S_OK;
 
     /* Check if there is a mask to apply if not */
-    if(!fodInfos->ShellInfos.lpstrCurrentFilter || !lstrlenW(fodInfos->ShellInfos.lpstrCurrentFilter))
+    if(!fodInfos->ShellInfos.lpstrCurrentFilter || !fodInfos->ShellInfos.lpstrCurrentFilter[0])
         return S_OK;
 
     if (SUCCEEDED(IShellFolder_GetDisplayNameOf(fodInfos->Shell.FOIShellFolder, pidl, SHGDN_INFOLDER | SHGDN_FORPARSING, &str)))




More information about the wine-cvs mailing list