richedit: Prevented an assertion error on startup when run on Windows

Dylan Smith dylan.ah.smith at gmail.com
Wed Jun 25 10:33:13 CDT 2008


The call to GetClientRect returns 0 values for the returned RECT when
called in WM_NCCREATE in on Windows, which ended up causing an assertion
error when Wine's riched20.dll replaces the native version. Moving the
call to WM_CREATE fixes this problem (probably because NCCALCSIZE is
called in between).

The issue was found on Windows XP XP3 with Wine's Wordpad. The only
native dll overriden while testing was riched20.dll.
---
 dlls/riched20/editor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-richedit-Prevented-an-assertion-error-on-startup-whe.diff
Type: text/x-diff
Size: 862 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080625/89520343/attachment.diff 


More information about the wine-patches mailing list