mirror of
https://github.com/reactos/wine.git
synced 2024-12-02 00:36:43 +00:00
msi: Check the return value of MSI_QueryGetRecord (Coverity).
This commit is contained in:
parent
e94d977006
commit
17405f6b91
@ -3554,7 +3554,9 @@ static UINT ACTION_ProcessComponents(MSIPACKAGE *package)
|
||||
if (!comp->KeyPath || !(file = msi_get_loaded_file(package, comp->KeyPath)))
|
||||
continue;
|
||||
|
||||
row = MSI_QueryGetRecord(package->db, query, file->Sequence);
|
||||
if (!(row = MSI_QueryGetRecord(package->db, query, file->Sequence)))
|
||||
return ERROR_FUNCTION_FAILED;
|
||||
|
||||
sprintfW(source, fmt, MSI_RecordGetInteger(row, 1));
|
||||
ptr2 = strrchrW(source, '\\') + 1;
|
||||
msiobj_release(&row->hdr);
|
||||
|
Loading…
Reference in New Issue
Block a user