kernel32: WideCharToMultiByte: return error on negative dest len
James Hawkins
truiken at gmail.com
Fri Mar 21 21:12:56 CDT 2008
On Fri, Mar 21, 2008 at 6:43 PM, Dan Kegel <dank at 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
More information about the wine-devel
mailing list