Hans Leidekker : msi: Remove some dead assignments (clang).

Alexandre Julliard julliard at winehq.org
Fri Sep 9 10:56:46 CDT 2011


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Fri Sep  9 11:01:39 2011 +0200

msi: Remove some dead assignments (clang).

---

 dlls/msi/appsearch.c |    5 ++---
 dlls/msi/dialog.c    |    3 +--
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c
index 3e0607f..f93e05d 100644
--- a/dlls/msi/appsearch.c
+++ b/dlls/msi/appsearch.c
@@ -460,7 +460,7 @@ static UINT ACTION_AppSearchReg(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNAT
     switch (type & 0x0f)
     {
     case msidbLocatorTypeDirectory:
-        rc = ACTION_SearchDirectory(package, sig, ptr, 0, appValue);
+        ACTION_SearchDirectory(package, sig, ptr, 0, appValue);
         break;
     case msidbLocatorTypeFileName:
         *appValue = app_search_file(ptr, sig);
@@ -481,7 +481,6 @@ end:
     msi_free( deformatted );
 
     msiobj_release(&row->hdr);
-
     return ERROR_SUCCESS;
 }
 
@@ -961,7 +960,7 @@ static UINT ACTION_AppSearchDr(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNATU
     {
         MSISIGNATURE parentSig;
 
-        rc = ACTION_AppSearchSigName(package, parentName, &parentSig, &parent);
+        ACTION_AppSearchSigName(package, parentName, &parentSig, &parent);
         ACTION_FreeSignature(&parentSig);
         if (!parent)
         {
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 51ca2e7..7074a7b 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -2467,12 +2467,11 @@ MSISelectionTree_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
         tvhti.pt.y = (short)HIWORD( lParam );
         tvhti.flags = 0;
         tvhti.hItem = 0;
-        r = CallWindowProcW(info->oldproc, hWnd, TVM_HITTEST, 0, (LPARAM) &tvhti );
+        CallWindowProcW(info->oldproc, hWnd, TVM_HITTEST, 0, (LPARAM) &tvhti );
         if (tvhti.flags & TVHT_ONITEMSTATEICON)
             return msi_seltree_menu( hWnd, tvhti.hItem );
         break;
     }
-
     r = CallWindowProcW(info->oldproc, hWnd, msg, wParam, lParam);
 
     switch( msg )




More information about the wine-cvs mailing list