[KERNEL32] Sync GetStringTypeW() with Wine Staging 1.7.37. CORE-9246

svn path=/trunk/; revision=66622
This commit is contained in:
Amine Khaldi 2015-03-09 17:53:20 +00:00
parent 220e1cfae1
commit 66123cf941

View file

@ -1255,6 +1255,11 @@ BOOL WINAPI GetStringTypeW( DWORD type, LPCWSTR src, INT count, LPWORD chartype
C2_OTHERNEUTRAL /* LRE, LRO, RLE, RLO, PDF */
};
if (!src) /* Abort and return FALSE when src is null */
{
SetLastError( ERROR_INVALID_PARAMETER );
return FALSE;
}
if (count == -1) count = strlenW(src) + 1;
switch(type)
{