From 2f614e6081be616f4068a48df42266fd929e1502 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 18 May 2010 16:02:11 +0200 Subject: [PATCH] krnl386.exe: Call the 32-bit string functions that contain exception handlers. --- dlls/krnl386.exe16/kernel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/krnl386.exe16/kernel.c b/dlls/krnl386.exe16/kernel.c index 7658549526b..437eed1ae46 100644 --- a/dlls/krnl386.exe16/kernel.c +++ b/dlls/krnl386.exe16/kernel.c @@ -21,6 +21,7 @@ #include #include +#define WINE_NO_INLINE_STRING #include "windef.h" #include "winbase.h" #include "winternl.h" @@ -397,7 +398,7 @@ void WINAPI hmemcpy16( LPVOID dst, LPCVOID src, LONG count ) */ SEGPTR WINAPI lstrcpyn16( SEGPTR dst, LPCSTR src, INT16 n ) { - lstrcpynA( MapSL(dst), src, n ); + if (!lstrcpynA( MapSL(dst), src, n )) return 0; return dst; }