Mike McCormack : advpack: Remove some dead code. (Coverity)

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 14 06:51:41 CDT 2006


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

Author: Mike McCormack <mike at codeweavers.com>
Date:   Wed Jun 14 11:16:32 2006 +0900

advpack: Remove some dead code. (Coverity)

---

 dlls/advpack/reg.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/dlls/advpack/reg.c b/dlls/advpack/reg.c
index 04a5a86..64e3ca6 100644
--- a/dlls/advpack/reg.c
+++ b/dlls/advpack/reg.c
@@ -224,7 +224,6 @@ HRESULT WINAPI RegInstallW(HMODULE hm, L
     int i;
     CABINFOW cabinfo;
     WCHAR tmp_ini_path[MAX_PATH];
-    HINF hinf = INVALID_HANDLE_VALUE;
     HRESULT hr = E_FAIL;
 
     TRACE("(%p, %s, %p)\n", hm, debugstr_w(pszSection), pstTable);
@@ -262,8 +261,6 @@ HRESULT WINAPI RegInstallW(HMODULE hm, L
     hr = ExecuteCabW(NULL, &cabinfo, NULL);
 
 done:
-    if (hinf != INVALID_HANDLE_VALUE)
-        SetupCloseInfFile(hinf);
 
     DeleteFileW(tmp_ini_path);
 




More information about the wine-cvs mailing list