Michael Stefaniuc : msi: Remove casts to the type of the casted variable.

Alexandre Julliard julliard at winehq.org
Fri Sep 23 10:56:53 CDT 2011


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Sep 23 16:03:23 2011 +0200

msi: Remove casts to the type of the casted variable.

---

 dlls/msi/action.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index d81c9b7..80bcfc8 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -3386,7 +3386,7 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param)
     {
         LPCWSTR guid;
         guid = MSI_RecordGetString(row,1);
-        CLSIDFromString((LPCWSTR)guid, &tl_struct.clsid);
+        CLSIDFromString( guid, &tl_struct.clsid);
         tl_struct.source = strdupW( file->TargetPath );
         tl_struct.path = NULL;
 
@@ -3473,7 +3473,7 @@ static UINT ITERATE_UnregisterTypeLibraries( MSIRECORD *row, LPVOID param )
     msi_ui_actiondata( package, szUnregisterTypeLibraries, row );
 
     guid = MSI_RecordGetString( row, 1 );
-    CLSIDFromString( (LPCWSTR)guid, &libid );
+    CLSIDFromString( guid, &libid );
     version = MSI_RecordGetInteger( row, 4 );
     language = MSI_RecordGetInteger( row, 2 );
 




More information about the wine-cvs mailing list