richedit: (9/8) EM_POSFROMCHAR tests (resend)

Alex Villací­s Lasso a_villacis at palosanto.com
Mon Jun 23 13:49:49 CDT 2008


Alexandre Julliard escribió:
> Alex Villací­s Lasso <a_villacis at palosanto.com> writes:
>
>   
>> Was there something wrong with this patch?
>>     
>
> It doesn't apply, please resend.
>   
Resending:

Found while debugging #13864 . While it does not solve the bug, it is 
worthwhile to get this out of the way.

EM_POSFROMCHAR can return the position of the requested character 
through either a pointer to a POINTL through wParam, or through the 
result value. When using the pointer method, native returns 0, builtin 
returns MAKELONG(x,y) (just like the return method). Builtin should 
choose one or the other, but not both at the same time.

Changelog:
* When returning position through wParam pointer, EM_POSFROMCHAR must 
return 0 as LRESULT.
* Add tests for EM_POSFROMCHAR for 1.0 and 2.0.


-- 
perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-richedit-EM_POSFROMCHAR-tests-rebase2.patch
Type: text/x-patch
Size: 7815 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080623/19bcdf7d/attachment-0001.bin 


More information about the wine-patches mailing list