fixing broken asm code.

tcslen, wsclen did not check if the string was null or not. 
Adding a NULL pointer check. This make user32 test working and alot other apps. 
  

svn path=/trunk/; revision=23004
This commit is contained in:
Magnus Olsen 2006-07-10 20:02:12 +00:00
parent 06f4494f85
commit 5dd17c2315

View file

@ -9,6 +9,9 @@ _tcslen:
push %edi
mov 0x8(%esp), %edi
xor %eax, %eax
test %edi,%edi
jz _tcslen_end
mov $-1, %ecx
cld
@ -18,6 +21,8 @@ _tcslen:
dec %ecx
mov %ecx, %eax
_tcslen_end:
pop %edi
ret