msi: Check for NULL transform,
as there may be no transforms for the _Columns or _Tables tables
James Hawkins
truiken at gmail.com
Tue Jul 10 13:26:44 CDT 2007
Hi,
Fixes bug 8911. http://bugs.winehq.org/show_bug.cgi?id=8911
Changelog:
* 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(-)
--
James Hawkins
-------------- next part --------------
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( MS
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) );
--
1.4.1
More information about the wine-patches
mailing list