Michael Stefaniuc : shell32: Remove superfluous continue (coccinellery).

Alexandre Julliard julliard at winehq.org
Wed Feb 20 16:37:01 CST 2019


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Wed Feb 20 20:54:23 2019 +0100

shell32: Remove superfluous continue (coccinellery).

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/shell32/xdg.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/dlls/shell32/xdg.c b/dlls/shell32/xdg.c
index 781902a..0351699 100644
--- a/dlls/shell32/xdg.c
+++ b/dlls/shell32/xdg.c
@@ -939,14 +939,10 @@ HRESULT XDG_UserDirLookup(const char * const *xdg_dirs, const unsigned int num_d
 
         /* Parse the value */
         hr = parse_config2(p, home_dir, &out[idx]);
-        if (FAILED(hr))
+        if (hr == E_OUTOFMEMORY)
         {
-            if (hr == E_OUTOFMEMORY)
-            {
-                fclose(file);
-                goto xdg_user_dir_lookup_error;
-            }
-            continue;
+            fclose(file);
+            goto xdg_user_dir_lookup_error;
         }
     }
     fclose (file);




More information about the wine-cvs mailing list