From daa20d9d636057d7009ff3652a8577b423d23fcf Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Sun, 4 Jun 2023 22:15:35 -0600 Subject: [PATCH] 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) -- 2.11.4.GIT