Skip to content
Snippets Groups Projects
Commit ac0a7b64 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

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

parent 3a63aebc
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment