[5/44] richedit: Prevented an assertion error on startup when run on Windows

Dylan Smith dylan.ah.smith at gmail.com
Tue Jun 17 20:18:33 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: 0005-richedit-Prevented-an-assertion-error-on-startup-whe.diff
Type: text/x-diff
Size: 836 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080617/3d55457f/attachment.diff 


More information about the wine-patches mailing list