=?UTF-8?Q?Michael=20M=C3=BCller=20?=: krnl386.exe16: Increase buffer size in GetTempDrive.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Aug 19 09:56:01 CDT 2015
Module: wine
Branch: master
Commit: 33aa59abea2ec4dc0d2354a44ec9d0a5af43e48f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=33aa59abea2ec4dc0d2354a44ec9d0a5af43e48f
Author: Michael Müller <michael at fds-team.de>
Date: Wed Aug 19 06:35:21 2015 +0200
krnl386.exe16: Increase buffer size in GetTempDrive.
---
dlls/krnl386.exe16/file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/krnl386.exe16/file.c b/dlls/krnl386.exe16/file.c
index 6c3cef3..77908c2 100644
--- a/dlls/krnl386.exe16/file.c
+++ b/dlls/krnl386.exe16/file.c
@@ -461,10 +461,10 @@ LONG WINAPI _hwrite16( HFILE16 hFile, LPCSTR buffer, LONG count )
*/
UINT WINAPI GetTempDrive( BYTE ignored )
{
- WCHAR buffer[8];
+ WCHAR buffer[MAX_PATH];
BYTE ret;
- if (GetTempPathW( 8, buffer )) ret = (BYTE)toupperW(buffer[0]);
+ if (GetTempPathW( MAX_PATH, buffer )) ret = (BYTE)toupperW(buffer[0]);
else ret = 'C';
return MAKELONG( ret | (':' << 8), 1 );
}
More information about the wine-cvs
mailing list