Author: cwittich
Date: Tue Jan 20 10:27:05 2009
New Revision: 38980
URL:
http://svn.reactos.org/svn/reactos?rev=38980&view=rev
Log:
fix kernel32 codepage winetest
Modified:
trunk/reactos/dll/win32/kernel32/misc/nls.c
Modified: trunk/reactos/dll/win32/kernel32/misc/nls.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/nl…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/nls.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/nls.c [iso-8859-1] Tue Jan 20 10:27:05 2009
@@ -493,7 +493,10 @@
}
if (MultiByteString < MbsEnd)
+ {
SetLastError(ERROR_INSUFFICIENT_BUFFER);
+ return 0;
+ }
return Count;
}
@@ -525,6 +528,7 @@
{
MultiByteCount = WideCharCount;
SetLastError(ERROR_INSUFFICIENT_BUFFER);
+ return 0;
}
for (TempLength = MultiByteCount;