Marcus Meissner : msi: Fix some NULL dereferences (Coverity).

Alexandre Julliard julliard at winehq.org
Mon Jun 13 11:49:16 CDT 2011


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sat Jun 11 11:33:08 2011 +0200

msi: Fix some NULL dereferences (Coverity).

---

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

diff --git a/dlls/msi/font.c b/dlls/msi/font.c
index aea5702..afc7ee6 100644
--- a/dlls/msi/font.c
+++ b/dlls/msi/font.c
@@ -216,13 +216,13 @@ static UINT ITERATE_RegisterFonts(MSIRECORD *row, LPVOID param)
     file = msi_get_loaded_file( package, filename );
     if (!file)
     {
-        WARN("unable to find file %s\n", debugstr_w(file->File));
+        WARN("unable to find file %s\n", debugstr_w(filename));
         return ERROR_SUCCESS;
     }
     comp = msi_get_loaded_component( package, file->Component->Component );
     if (!comp)
     {
-        WARN("unable to find component %s\n", debugstr_w(comp->Component));
+        WARN("unable to find component %s\n", debugstr_w(file->Component->Component));
         return ERROR_SUCCESS;
     }
     comp->Action = msi_get_component_action( package, comp );
@@ -301,13 +301,13 @@ static UINT ITERATE_UnregisterFonts( MSIRECORD *row, LPVOID param )
     file = msi_get_loaded_file( package, filename );
     if (!file)
     {
-        WARN("unable to find file %s\n", debugstr_w(file->File));
+        WARN("unable to find file %s\n", debugstr_w(filename));
         return ERROR_SUCCESS;
     }
     comp = msi_get_loaded_component( package, file->Component->Component );
     if (!comp)
     {
-        WARN("unable to find component %s\n", debugstr_w(comp->Component));
+        WARN("unable to find component %s\n", debugstr_w(file->Component->Component));
         return ERROR_SUCCESS;
     }
     comp->Action = msi_get_component_action( package, comp );




More information about the wine-cvs mailing list