James Hawkins : msi: Check for NULL transform,
as there may be no transforms for the _Columns or _Tables tables.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jul 11 07:50:51 CDT 2007
Module: wine
Branch: master
Commit: f0b97cb1e175eb82fc05821f5e72d9181f046989
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f0b97cb1e175eb82fc05821f5e72d9181f046989
Author: James Hawkins <truiken at gmail.com>
Date: Tue Jul 10 11:26:44 2007 -0700
msi: Check for NULL transform, as there may be no transforms for the _Columns or _Tables tables.
---
dlls/msi/table.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/table.c b/dlls/msi/table.c
index 3fa8838..fb414a2 100644
--- a/dlls/msi/table.c
+++ b/dlls/msi/table.c
@@ -1981,7 +1981,12 @@ static UINT msi_table_load_transform( MSIDATABASE *db, IStorage *stg,
MSIRECORD *rec = NULL;
UINT colcol = 0;
WCHAR coltable[32];
- LPWSTR name = transform->name;
+ LPWSTR name;
+
+ if (!transform)
+ return ERROR_SUCCESS;
+
+ name = transform->name;
coltable[0] = 0;
TRACE("%p %p %p %s\n", db, stg, st, debugstr_w(name) );
More information about the wine-cvs
mailing list