Module: wine Branch: master Commit: 15d1a1933c60064f2994bbdf36a697b54767518f URL: https://gitlab.winehq.org/wine/wine/-/commit/15d1a1933c60064f2994bbdf36a697b...
Author: Hans Leidekker hans@codeweavers.com Date: Tue Jul 9 14:45:48 2024 +0200
msi: Handle failure from MSI_RecordGetInteger().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56952
---
dlls/msi/appsearch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index 070f31c5227..5813549bdb5 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -953,7 +953,9 @@ static UINT load_drlocator( MSIRECORD *row, void *param )
locator->Parent = msi_dup_record_field( row, 2 ); locator->Path = msi_dup_record_field( row, 3 ); - locator->Depth = MSI_RecordGetInteger( row,4 ); + locator->Depth = MSI_RecordGetInteger( row, 4 ); + if (locator->Depth == MSI_NULL_INTEGER) locator->Depth = 0; + list_add_tail( &package->drlocators, &locator->entry ); return ERROR_SUCCESS; }