[PATCH] msi: Fixed null dereference in error path (Coverity)

Marcus Meissner marcus at jet.franken.de
Sat Jun 11 04:24:58 CDT 2011


Hi,

Kinda obvious. CID 5112.

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

diff --git a/dlls/msi/font.c b/dlls/msi/font.c
index aea5702..7c1a859 100644
--- a/dlls/msi/font.c
+++ b/dlls/msi/font.c
@@ -301,7 +301,7 @@ 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 );
-- 
1.7.3.4




More information about the wine-patches mailing list