Commit 3ca2dfe4 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msi: Avoid uninitialized pointer access on error path (Coverity).

parent d631714c
...@@ -840,7 +840,7 @@ static DWORD deformat_string_internal(MSIPACKAGE *package, LPCWSTR ptr, ...@@ -840,7 +840,7 @@ static DWORD deformat_string_internal(MSIPACKAGE *package, LPCWSTR ptr,
UINT MSI_FormatRecordW( MSIPACKAGE* package, MSIRECORD* record, LPWSTR buffer, UINT MSI_FormatRecordW( MSIPACKAGE* package, MSIRECORD* record, LPWSTR buffer,
LPDWORD size ) LPDWORD size )
{ {
WCHAR *format, *deformated; WCHAR *format, *deformated = NULL;
UINT rc = ERROR_INVALID_PARAMETER; UINT rc = ERROR_INVALID_PARAMETER;
DWORD len; DWORD len;
MSIRECORD *record_deformated; MSIRECORD *record_deformated;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment