[CPL][DESK] hShell32 is always non-NULL in epilogue
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Tue, 22 Oct 2019 00:43:34 +0000 (09:43 +0900)
committerKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Tue, 22 Oct 2019 00:43:34 +0000 (09:43 +0900)
dll/cpl/desk/advmon.c

index f363b66..141f6ff 100644 (file)
@@ -140,8 +140,7 @@ DisplayAdvancedSettings(HWND hWndParent, PDISPLAY_DEVICE_ENTRY DisplayDevice)
     IDataObject_Release(pdo);
 
 #ifdef _MSC_VER
-    if (hShell32)
-        FreeLibrary(hShell32);
+    FreeLibrary(hShell32);
 #endif
 
     return Ret;