richedit: Prevented an assertion error on startup when run on Windows.
commit67024f0f3448e970aaa75fa4de546cfd8aa0fc44
authorDylan Smith <dylan.ah.smith@gmail.com>
Wed, 25 Jun 2008 15:33:13 +0000 (25 11:33 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 26 Jun 2008 19:15:54 +0000 (26 21:15 +0200)
tree2c97663799034d731b1fd07ce79be15f27d3f2a8
parent1840a5bcadc93aa5bdf8f4b5130aca21e6fd0f04
richedit: Prevented an assertion error on startup when run on Windows.

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).
dlls/riched20/editor.c