From eb7d8b92cb3f74655f9721e020e12d971076d58b Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Thu, 3 Nov 2011 11:40:16 +0100 Subject: [PATCH] msi: GetComputerName returns ERROR_BUFFER_OVERFLOW when the buffer is too small. --- dlls/msi/package.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) )))