Commit 6d1ec351 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

This reverts commit ac0a7b64. GetUserName is supposed to return 0 here, as size is 0.
parent f981e351
......@@ -501,8 +501,7 @@ static UINT set_user_sid_prop( MSIPACKAGE *package )
UINT r = ERROR_FUNCTION_FAILED;
size = 0;
if (!GetUserNameW( NULL, &size ))
return r;
GetUserNameW( NULL, &size );
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