Module: wine Branch: master Commit: daa20d9d636057d7009ff3652a8577b423d23fcf URL: https://gitlab.winehq.org/wine/wine/-/commit/daa20d9d636057d7009ff3652a8577b...
Author: Alex Henrie alexhenrie24@gmail.com Date: Sun Jun 4 22:15:35 2023 -0600
msi: Return ERROR_OUTOFMEMORY if calloc fails in TransformView_Create (scan-build).
Instead of ERROR_SUCCESS.
---
dlls/msi/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msi/table.c b/dlls/msi/table.c index f65250766a4..e83c076ab23 100644 --- a/dlls/msi/table.c +++ b/dlls/msi/table.c @@ -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)