diff --git a/dlls/msi/package.c b/dlls/msi/package.c index c4218053a14..1cbb221b2dc 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -1005,7 +1005,7 @@ static VOID set_installer_properties(MSIPACKAGE *package) msi_set_property( package->db, szProductState, bufstr ); len = 0; - if (!GetUserNameW( NULL, &len ) && GetLastError() == ERROR_MORE_DATA) + if (!GetUserNameW( NULL, &len ) && GetLastError() == ERROR_INSUFFICIENT_BUFFER) { WCHAR *username; if ((username = msi_alloc( len * sizeof(WCHAR) )))