msi: Return ERROR_OUTOFMEMORY if calloc fails in TransformView_Create (scan-build).

Instead of ERROR_SUCCESS.
This commit is contained in:
Alex Henrie 2023-06-04 22:15:35 -06:00 committed by Alexandre Julliard
parent abfc151e0b
commit daa20d9d63

View file

@ -2856,7 +2856,7 @@ UINT TransformView_Create( MSIDATABASE *db, string_table *st, LPCWSTR name, MSIV
MSI_ViewClose( q );
msiobj_release( &q->hdr );
free( tv );
return r;
return ERROR_OUTOFMEMORY;
}
while (MSI_ViewFetch( q, &rec ) == ERROR_SUCCESS)