wordpad: native RegisterClassExW requires cbSize to be set.
Dylan Smith
dylan.ah.smith at gmail.com
Thu Jun 10 23:43:44 CDT 2010
On Windows XP, Wine's wordpad fails on RegisterClassExW because
the cbSize field isn't set. This is a regression from commit
b2e7e5c3530a77d9af5819643e458e0fa0e32b78 because native RegisterClassW
doesn't seem to check the cbSize field.
---
programs/wordpad/wordpad.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c
index c90e7b5..0bf5d0c 100644
--- a/programs/wordpad/wordpad.c
+++ b/programs/wordpad/wordpad.c
@@ -2671,6 +2671,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
hAccel = LoadAcceleratorsW(hInstance, wszAccelTable);
+ wc.cbSize = sizeof(wc);
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = WndProc;
wc.cbClsExtra = 0;
--
1.7.0.4
More information about the wine-patches
mailing list