msi: Check the correct pointers for allocation failure (Coverity).
diff --git a/dlls/msi/database.c b/dlls/msi/database.c
index 80a2c5d..bc9319e 100644
--- a/dlls/msi/database.c
+++ b/dlls/msi/database.c
@@ -1371,7 +1371,7 @@
count = MSI_RecordGetFieldCount(prec);
*numlabels = count + 1;
*labels = msi_alloc((*numlabels)*sizeof(LPWSTR));
- if (!labels)
+ if (!*labels)
{
r = ERROR_OUTOFMEMORY;
goto end;
@@ -1399,7 +1399,7 @@
count = MSI_RecordGetFieldCount(prec);
*columns = msi_alloc(count*sizeof(LPWSTR));
- if (!columns)
+ if (!*columns)
{
r = ERROR_OUTOFMEMORY;
goto end;
@@ -1428,7 +1428,7 @@
count = MSI_RecordGetFieldCount(prec);
*types = msi_alloc(count*sizeof(LPWSTR));
- if (!types)
+ if (!*types)
{
r = ERROR_OUTOFMEMORY;
goto end;