Re: kernel32: WideCharToMultiByte: return error on negative dest len
22 Mar
2008
22 Mar
'08
2:12 a.m.
On Fri, Mar 21, 2008 at 6:43 PM, Dan Kegel <dank(a)kegel.com> wrote:
While investigating a crash in gs-auftrag in bug 9039, noticed WideCharToMultiByte wasn't quite conformant for negative destlen. Fixed, with tests.
diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c index 1130349..2decf85 100644 --- a/dlls/kernel32/locale.c +++ b/dlls/kernel32/locale.c @@ -31,6 +31,7 @@ #include <stdarg.h> #include <stdio.h> #include <ctype.h> #include <stdlib.h> +#include <limits.h>
#ifdef __APPLE__ # include <CoreFoundation/CFBundle.h>
Leftover from a previous version of the patch? -- James Hawkins
6480
Age (days ago)
6480
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dan Kegel -
James Hawkins