krnl386.exe: Call the 32-bit string functions that contain exception handlers.
authorAlexandre Julliard <julliard@winehq.org>
Tue, 18 May 2010 14:02:11 +0000 (16:02 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 18 May 2010 16:42:08 +0000 (18:42 +0200)
dlls/krnl386.exe16/kernel.c

index 7658549526bd92328b243250dc75bcbafffb9baf..437eed1ae4688c9897b4f9261fbf9058038aa862 100644 (file)
@@ -21,6 +21,7 @@
 #include <stdarg.h>
 #include <stdio.h>
 
+#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;
 }