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

This reverts commit ac0a7b644fa464fa640e06a6e26b2191b5a29a92.
GetUserName is supposed to return 0 here, as size is 0.
This commit is contained in:
Marcus Meissner 2011-09-08 07:51:16 +02:00 committed by Alexandre Julliard
parent f981e35127
commit 6d1ec3517d

View File

@ -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)