Hans Leidekker : msi: GetComputerName returns ERROR_BUFFER_OVERFLOW when the buffer is too small .
Alexandre Julliard
julliard at winehq.org
Thu Nov 3 13:10:14 CDT 2011
Module: wine
Branch: master
Commit: eb7d8b92cb3f74655f9721e020e12d971076d58b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=eb7d8b92cb3f74655f9721e020e12d971076d58b
Author: Hans Leidekker <hans at codeweavers.com>
Date: Thu Nov 3 11:40:16 2011 +0100
msi: GetComputerName returns ERROR_BUFFER_OVERFLOW when the buffer is too small.
---
dlls/msi/package.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/package.c b/dlls/msi/package.c
index c265cca..756be42 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) )))
More information about the wine-cvs
mailing list