mirror of
https://github.com/reactos/wine.git
synced 2025-03-01 01:05:54 +00:00
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:
parent
f981e35127
commit
6d1ec3517d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user