mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +00:00
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:
parent
06f4494f85
commit
5dd17c2315
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue