Commit ac0a7b64 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

msi: Check for return value of GetUserName (Coverity).

parent 3a63aebc
......@@ -501,7 +501,8 @@ static UINT set_user_sid_prop( MSIPACKAGE *package )
UINT r = ERROR_FUNCTION_FAILED;
size = 0;
GetUserNameW( NULL, &size );
if (!GetUserNameW( NULL, &size ))
return r;
user_name = msi_alloc( (size + 1) * sizeof(WCHAR) );
if (!user_name)
......
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