Fix for r.2536

git-svn-id: svn://kolibrios.org@3462 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Marat Zakiyanov (Mario79) 2013-04-09 18:17:01 +00:00
parent 2bc923d897
commit 8977965c09

View File

@ -4912,7 +4912,11 @@ syscall_writetext: ; WriteText
add ebp, [eax-twdw+WDATA.box.top] add ebp, [eax-twdw+WDATA.box.top]
add bp, word[esi+APPDATA.wnd_clientbox.top] add bp, word[esi+APPDATA.wnd_clientbox.top]
pop esi pop esi
test ecx, 0x08000000 ; redirect the output to the user area
jnz @f
add ebx, ebp add ebx, ebp
align 4
@@:
mov eax, edi mov eax, edi
test ecx, 0x08000000 ; redirect the output to the user area test ecx, 0x08000000 ; redirect the output to the user area
jnz dtext jnz dtext