richedit: (9/8) EM_POSFROMCHAR tests

Alex Villací­s Lasso a_villacis at
Wed Jun 18 11:27:09 CDT 2008

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.

* 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.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list