diff --git a/dlls/msi/package.c b/dlls/msi/package.c index c265ccadd5e..756be42f1ff 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -1014,7 +1014,7 @@ static VOID set_installer_properties(MSIPACKAGE *package) } } len = 0; - if (!GetComputerNameW( NULL, &len ) && GetLastError() == ERROR_INSUFFICIENT_BUFFER) + if (!GetComputerNameW( NULL, &len ) && GetLastError() == ERROR_BUFFER_OVERFLOW) { WCHAR *computername; if ((computername = msi_alloc( len * sizeof(WCHAR) )))