winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
February 2008
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
999 discussions
Start a n
N
ew thread
Paul Vriens : version/tests: Win98, NT4 and W2K return different errors.
by Alexandre Julliard
25 Feb '08
25 Feb '08
Module: wine Branch: master Commit: d6a8b5024a2bd04e8762b56e39675d3b2cfe7747 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d6a8b5024a2bd04e8762b56e3…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Mon Feb 25 17:07:52 2008 +0100 version/tests: Win98, NT4 and W2K return different errors. --- dlls/version/tests/info.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/version/tests/info.c b/dlls/version/tests/info.c index d31797a..3bfc9fb 100644 --- a/dlls/version/tests/info.c +++ b/dlls/version/tests/info.c @@ -476,7 +476,8 @@ static void test_VerQueryValue(void) SetLastError(0xdeadbeef); ret = VerQueryValue(ver, "String", (LPVOID*)&p, &len); ok(!ret, "VerQueryValue should fail\n"); - ok(GetLastError() == ERROR_RESOURCE_TYPE_NOT_FOUND, + ok(GetLastError() == ERROR_RESOURCE_TYPE_NOT_FOUND || + GetLastError() == 0xdeadbeef /* Win9x, NT4, W2K */, "VerQueryValue returned %u\n", GetLastError()); ok(p == (char *)0xdeadbeef, "expected 0xdeadbeef got %p\n", p); ok(len == 0, "expected 0 got %x\n", len); @@ -542,7 +543,8 @@ todo_wine ok(len == 0, "VerQueryValue returned %u, expected 0\n", len); SetLastError(0xdeadbeef); ret = VerQueryValue(ver, buf, (LPVOID*)&p, &len); ok(!ret, "VerQueryValue(%s) succeeded\n", buf); - ok(GetLastError() == ERROR_RESOURCE_TYPE_NOT_FOUND, + ok(GetLastError() == ERROR_RESOURCE_TYPE_NOT_FOUND || + GetLastError() == 0xdeadbeef /* Win9x, NT4, W2K */, "VerQueryValue returned %u\n", GetLastError()); ok(p == (char *)0xdeadbeef, "expected 0xdeadbeef got %p\n", p); ok(len == 0, "expected 0 got %x\n", len);
1
0
0
0
Paul Vriens : advapi32/tests: Don't crash on NT4, W2K and XP-SP1.
by Alexandre Julliard
25 Feb '08
25 Feb '08
Module: wine Branch: master Commit: 0c7ab1bd3079acd7901a381c5ecbea41f4336014 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0c7ab1bd3079acd7901a381c5…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Mon Feb 25 15:41:18 2008 +0100 advapi32/tests: Don't crash on NT4, W2K and XP-SP1. --- dlls/advapi32/tests/registry.c | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c index 1180818..474879e 100644 --- a/dlls/advapi32/tests/registry.c +++ b/dlls/advapi32/tests/registry.c @@ -304,8 +304,12 @@ static void test_set_value(void) static const char string2A[] = "This\0Breaks\0\0A\0\0\0Lot\0\0\0\0"; static const char substring2A[] = "This"; - ret = RegSetValueA(hkey_main, NULL, REG_SZ, NULL, 0); - ok(ret == ERROR_INVALID_PARAMETER, "RegSetValueA should have failed with ERROR_INVALID_PARAMETER instead of %d\n", ret); + if (0) + { + /* Crashes on NT4, Windows 2000 and XP SP1 */ + ret = RegSetValueA(hkey_main, NULL, REG_SZ, NULL, 0); + ok(ret == ERROR_INVALID_PARAMETER, "RegSetValueA should have failed with ERROR_INVALID_PARAMETER instead of %d\n", ret); + } ret = RegSetValueA(hkey_main, NULL, REG_SZ, string1A, sizeof(string1A)); ok(ret == ERROR_SUCCESS, "RegSetValueA failed: %d, GLE=%d\n", ret, GetLastError()); @@ -367,9 +371,12 @@ static void test_set_value(void) /* 9x doesn't support W-calls, so don't test them then */ if(GLE == ERROR_CALL_NOT_IMPLEMENTED) return; - - ret = RegSetValueW(hkey_main, NULL, REG_SZ, NULL, 0); - ok(ret == ERROR_INVALID_PARAMETER, "RegSetValueW should have failed with ERROR_INVALID_PARAMETER instead of %d\n", ret); + if (0) + { + /* Crashes on NT4, Windows 2000 and XP SP1 */ + ret = RegSetValueW(hkey_main, NULL, REG_SZ, NULL, 0); + ok(ret == ERROR_INVALID_PARAMETER, "RegSetValueW should have failed with ERROR_INVALID_PARAMETER instead of %d\n", ret); + } ret = RegSetValueW(hkey_main, NULL, REG_SZ, string1W, sizeof(string1W)); ok(ret == ERROR_SUCCESS, "RegSetValueW failed: %d, GLE=%d\n", ret, GetLastError());
1
0
0
0
Rob Shearman : ole32: Implement VT_VECTOR|VT_VARIANT in PropVariantCopy.
by Alexandre Julliard
25 Feb '08
25 Feb '08
Module: wine Branch: master Commit: 9730b285ba30d30c5c1d5ccb142d5cd27d004a94 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9730b285ba30d30c5c1d5ccb1…
Author: Rob Shearman <rob(a)codeweavers.com> Date: Mon Feb 25 14:25:12 2008 +0000 ole32: Implement VT_VECTOR|VT_VARIANT in PropVariantCopy. --- dlls/ole32/ole2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index 91e35e2..e8efb47 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -2888,8 +2888,8 @@ HRESULT WINAPI PropVariantCopy(PROPVARIANT *pvarDest, /* [out] */ case VT_BSTR: elemSize = sizeof(*pvarSrc->u.bstrVal); break; case VT_LPSTR: elemSize = sizeof(*pvarSrc->u.pszVal); break; case VT_LPWSTR: elemSize = sizeof(*pvarSrc->u.pwszVal); break; + case VT_VARIANT: elemSize = sizeof(*pvarSrc->u.pvarVal); break; - case VT_VARIANT: default: FIXME("Invalid element type: %ul\n", pvarSrc->vt & ~VT_VECTOR); return E_INVALIDARG;
1
0
0
0
Rob Shearman : imm32: Destroy the data of the context passed into ImmDestroyContext, not the data in the root context.
by Alexandre Julliard
25 Feb '08
25 Feb '08
Module: wine Branch: master Commit: 076e3002ec6530718658c8c6321d3b551feaaf8b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=076e3002ec6530718658c8c63…
Author: Rob Shearman <rob(a)codeweavers.com> Date: Mon Feb 25 14:24:29 2008 +0000 imm32: Destroy the data of the context passed into ImmDestroyContext, not the data in the root context. --- dlls/imm32/imm.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c index 6b4e288..5872bc8 100644 --- a/dlls/imm32/imm.c +++ b/dlls/imm32/imm.c @@ -626,11 +626,11 @@ BOOL WINAPI ImmDestroyContext(HIMC hIMC) if (hIMC) { - ImmDestroyIMCC(root_context->IMC.hCompStr); - ImmDestroyIMCC(root_context->IMC.hCandInfo); - ImmDestroyIMCC(root_context->IMC.hGuideLine); - ImmDestroyIMCC(root_context->IMC.hPrivate); - ImmDestroyIMCC(root_context->IMC.hMsgBuf); + ImmDestroyIMCC(data->IMC.hCompStr); + ImmDestroyIMCC(data->IMC.hCandInfo); + ImmDestroyIMCC(data->IMC.hGuideLine); + ImmDestroyIMCC(data->IMC.hPrivate); + ImmDestroyIMCC(data->IMC.hMsgBuf); if (data->textfont) {
1
0
0
0
Paul Vriens : msi/tests: Make tests run on win9x/NT4 again.
by Alexandre Julliard
25 Feb '08
25 Feb '08
Module: wine Branch: master Commit: 89c8e795d8ef2af01fe793e31b26ba0b51ec8615 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=89c8e795d8ef2af01fe793e31…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Mon Feb 25 14:55:59 2008 +0100 msi/tests: Make tests run on win9x/NT4 again. --- dlls/msi/tests/install.c | 31 ++- dlls/msi/tests/source.c | 711 +++++++++++++++++++++++----------------------- 2 files changed, 377 insertions(+), 365 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=89c8e795d8ef2af01fe79…
1
0
0
0
Alexandre Julliard : ntdll: Add an exception handler around check_actctx to catch bad handles.
by Alexandre Julliard
25 Feb '08
25 Feb '08
Module: wine Branch: master Commit: 198a00bc9eeb2d2fcf5122fa8b7de38bb4fb526d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=198a00bc9eeb2d2fcf5122fa8…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Feb 25 19:49:27 2008 +0100 ntdll: Add an exception handler around check_actctx to catch bad handles. --- dlls/ntdll/actctx.c | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/dlls/ntdll/actctx.c b/dlls/ntdll/actctx.c index 60128bc..8f9a2c1 100644 --- a/dlls/ntdll/actctx.c +++ b/dlls/ntdll/actctx.c @@ -33,6 +33,7 @@ #define WIN32_NO_STATUS #include "winternl.h" #include "ntdll_misc.h" +#include "wine/exception.h" #include "wine/debug.h" #include "wine/unicode.h" @@ -568,16 +569,18 @@ static WCHAR *build_assembly_id( const struct assembly_identity *ai ) static ACTIVATION_CONTEXT *check_actctx( HANDLE h ) { - ACTIVATION_CONTEXT *actctx = h; + ACTIVATION_CONTEXT *ret = NULL, *actctx = h; if (!h || h == INVALID_HANDLE_VALUE) return NULL; - switch (actctx->magic) + __TRY { - case ACTCTX_MAGIC: - return actctx; - default: - return NULL; + if (actctx->magic == ACTCTX_MAGIC) ret = actctx; } + __EXCEPT_PAGE_FAULT + { + } + __ENDTRY + return ret; } static inline void actctx_addref( ACTIVATION_CONTEXT *actctx )
1
0
0
0
Alexandre Julliard : winex11: Use the same full screen test in is_window_managed and update_wm_states.
by Alexandre Julliard
25 Feb '08
25 Feb '08
Module: wine Branch: master Commit: dba8ad57518bb4c9d013f73108adaff55f10db7e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dba8ad57518bb4c9d013f7310…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Feb 25 19:48:07 2008 +0100 winex11: Use the same full screen test in is_window_managed and update_wm_states. --- dlls/winex11.drv/window.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 6dd9e7d..cf84389 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -103,8 +103,8 @@ BOOL is_window_managed( HWND hwnd, UINT swp_flags, const RECT *window_rect ) /* popup with sysmenu == caption are managed */ if (style & WS_SYSMENU) return TRUE; /* full-screen popup windows are managed */ - if ((window_rect->right - window_rect->left) == screen_width && - (window_rect->bottom - window_rect->top) == screen_height) + if (window_rect->left <= 0 && window_rect->right >= screen_width && + window_rect->top <= 0 && window_rect->bottom >= screen_height) return TRUE; } /* default: not managed */
1
0
0
0
Alexandre Julliard : winex11: Get rid of the visual id property, we are using the default now.
by Alexandre Julliard
25 Feb '08
25 Feb '08
Module: wine Branch: master Commit: a268725922390f96e030781a9739bfab95b945e4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a268725922390f96e030781a9…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Feb 25 16:06:08 2008 +0100 winex11: Get rid of the visual id property, we are using the default now. --- dlls/winex11.drv/window.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 9505103..6dd9e7d 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -64,7 +64,6 @@ static const char fbconfig_id_prop[] = "__wine_x11_fbconfig_id"; static const char gl_drawable_prop[] = "__wine_x11_gl_drawable"; static const char pixmap_prop[] = "__wine_x11_pixmap"; static const char managed_prop[] = "__wine_x11_managed"; -static const char visual_id_prop[] = "__wine_x11_visual_id"; /* for XDG systray icons */ #define SYSTEM_TRAY_REQUEST_DOCK 0 @@ -1360,7 +1359,6 @@ static struct x11drv_win_data *create_desktop_win_data( Display *display, HWND h SetPropA( data->hwnd, managed_prop, (HANDLE)1 ); SetPropA( data->hwnd, whole_window_prop, (HANDLE)root_window ); SetPropA( data->hwnd, client_window_prop, (HANDLE)root_window ); - SetPropA( data->hwnd, visual_id_prop, (HANDLE)visualid ); set_initial_wm_hints( display, data ); return data; }
1
0
0
0
Alexandre Julliard : user32: Moved the DCE support from winex11 back to user32.
by Alexandre Julliard
25 Feb '08
25 Feb '08
Module: wine Branch: master Commit: 1642fbcbc2b4133cf0ce29c3539082cc1027180b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1642fbcbc2b4133cf0ce29c35…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Feb 25 15:59:19 2008 +0100 user32: Moved the DCE support from winex11 back to user32. Window and class DCEs are now allocated lazily. --- dlls/user32/class.c | 22 ++ dlls/user32/controls.h | 2 + dlls/user32/driver.c | 35 +-- dlls/user32/painting.c | 590 ++++++++++++++++++++++++++++++++- dlls/user32/tests/dce.c | 1 - dlls/user32/user32.spec | 1 + dlls/user32/user_private.h | 9 +- dlls/user32/win.c | 8 +- dlls/user32/winpos.c | 12 +- dlls/winex11.drv/Makefile.in | 1 - dlls/winex11.drv/dce.c | 655 ------------------------------------- dlls/winex11.drv/opengl.c | 2 - dlls/winex11.drv/window.c | 95 ++++--- dlls/winex11.drv/winex11.drv.spec | 5 +- dlls/winex11.drv/winpos.c | 21 +- dlls/winex11.drv/x11drv.h | 14 - include/win.h | 1 + 17 files changed, 705 insertions(+), 769 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=1642fbcbc2b4133cf0ce2…
1
0
0
0
Alexandre Julliard : user32: Simplify the window structure creation. Get rid of the unused clsStyle field.
by Alexandre Julliard
25 Feb '08
25 Feb '08
Module: wine Branch: master Commit: 4273a8ab868f90b2af34db25884f8ceb8ad5b30d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4273a8ab868f90b2af34db258…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Feb 25 15:55:17 2008 +0100 user32: Simplify the window structure creation. Get rid of the unused clsStyle field. --- dlls/user32/class.c | 12 +++--------- dlls/user32/controls.h | 2 +- dlls/user32/win.c | 11 +++++------ include/win.h | 1 - 4 files changed, 9 insertions(+), 17 deletions(-) diff --git a/dlls/user32/class.c b/dlls/user32/class.c index eee9c1d..94bc639 100644 --- a/dlls/user32/class.c +++ b/dlls/user32/class.c @@ -433,17 +433,11 @@ void CLASS_RegisterBuiltinClasses(void) /*********************************************************************** - * CLASS_AddWindow - * - * Add a new window using this class, and set the necessary - * information inside the window structure. + * get_class_winproc */ -void CLASS_AddWindow( CLASS *class, WND *win, BOOL unicode ) +WNDPROC get_class_winproc( CLASS *class ) { - win->class = class; - win->clsStyle = class->style; - win->winproc = class->winproc; - if (WINPROC_IsUnicode( win->winproc, unicode )) win->flags |= WIN_ISUNICODE; + return class->winproc; } diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h index 812710c..ef56432 100644 --- a/dlls/user32/controls.h +++ b/dlls/user32/controls.h @@ -63,7 +63,7 @@ struct tagCLASS; /* opaque structure */ struct tagWND; extern ATOM get_int_atom_value( LPCWSTR name ) DECLSPEC_HIDDEN; extern void CLASS_RegisterBuiltinClasses(void) DECLSPEC_HIDDEN; -extern void CLASS_AddWindow( struct tagCLASS *class, struct tagWND *win, BOOL unicode ) DECLSPEC_HIDDEN; +extern WNDPROC get_class_winproc( struct tagCLASS *class ) DECLSPEC_HIDDEN; extern void CLASS_FreeModuleClasses( HMODULE16 hModule ) DECLSPEC_HIDDEN; /* defwnd proc */ diff --git a/dlls/user32/win.c b/dlls/user32/win.c index 8e02a5d..f5fee96 100644 --- a/dlls/user32/win.c +++ b/dlls/user32/win.c @@ -133,7 +133,8 @@ static WND *create_window_handle( HWND parent, HWND owner, LPCWSTR name, return NULL; } - if (!(win = HeapAlloc( GetProcessHeap(), 0, sizeof(WND) + extra_bytes - sizeof(win->wExtra) ))) + if (!(win = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, + sizeof(WND) + extra_bytes - sizeof(win->wExtra) ))) { SERVER_START_REQ( destroy_window ) { @@ -163,13 +164,11 @@ static WND *create_window_handle( HWND parent, HWND owner, LPCWSTR name, win->hwndSelf = handle; win->parent = full_parent; win->owner = full_owner; + win->class = class; + win->winproc = get_class_winproc( class ); win->dwMagic = WND_MAGIC; - win->flags = 0; win->cbWndExtra = extra_bytes; - SetRectEmpty( &win->rectWindow ); - SetRectEmpty( &win->rectClient ); - memset( win->wExtra, 0, extra_bytes ); - CLASS_AddWindow( class, win, unicode ); + if (WINPROC_IsUnicode( win->winproc, unicode )) win->flags |= WIN_ISUNICODE; return win; } diff --git a/include/win.h b/include/win.h index ac6b753..baa8c6d 100644 --- a/include/win.h +++ b/include/win.h @@ -49,7 +49,6 @@ typedef struct tagWND void *pHScroll; /* Horizontal scroll-bar info */ DWORD dwStyle; /* Window style (from CreateWindow) */ DWORD dwExStyle; /* Extended style (from CreateWindowEx) */ - DWORD clsStyle; /* Class style at window creation */ UINT_PTR wIDmenu; /* ID or hmenu (from CreateWindow) */ DWORD helpContext; /* Help context ID */ UINT flags; /* Misc. flags (see below) */
1
0
0
0
← Newer
1
...
17
18
19
20
21
22
23
...
100
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Results per page:
10
25
50
100
200