[PATCH] msi: Fix 2 more NULL derefs. (Coverity)

Marcus Meissner marcus at jet.franken.de
Sat Jun 11 04:33:08 CDT 2011


Hi,

CID 5110, 5109.
(sorry for sending 3 patches for 4 very similar issues in the same file.
I am sending them as they come into the viewer :/)

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

diff --git a/dlls/msi/font.c b/dlls/msi/font.c
index 0edc853..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 );
-- 
1.7.3.4




More information about the wine-patches mailing list