kernel32: smaller buffer for consoletitle
André Hentschel
nerv at dawncrow.de
Mon Aug 31 15:33:28 CDT 2009
The buffer in that context is for the lpTitle of the startupinfo,
the maximum size of the title is 309(yes senseless, but tested half a hour) on w2k.
So 512 should really be enough
---
dlls/kernel32/console.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c
index 48bcfa4..7cd06cd 100644
--- a/dlls/kernel32/console.c
+++ b/dlls/kernel32/console.c
@@ -1228,7 +1228,7 @@ BOOL WINAPI AllocConsole(void)
HANDLE handle_err = INVALID_HANDLE_VALUE;
STARTUPINFOA siCurrent;
STARTUPINFOA siConsole;
- char buffer[1024];
+ char buffer[512];
TRACE("()\n");
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list