user32: Use the existing HWND_* defines.
Michael Stefaniuc
mstefani at redhat.de
Thu Mar 4 15:48:51 CST 2010
---
dlls/user32/tests/dialog.c | 8 ++++----
dlls/user32/winpos.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/user32/tests/dialog.c b/dlls/user32/tests/dialog.c
index 1b36c53..46172a0 100644
--- a/dlls/user32/tests/dialog.c
+++ b/dlls/user32/tests/dialog.c
@@ -811,8 +811,8 @@ static void InitialFocusTest (void)
*/
g_bInitialFocusInitDlgResult = FALSE;
- g_hwndInitialFocusT1 = (HWND) -1;
- g_hwndInitialFocusT2 = (HWND) -1;
+ g_hwndInitialFocusT1 = HWND_TOPMOST;
+ g_hwndInitialFocusT2 = HWND_TOPMOST;
g_styleInitialFocusT1 = -1;
g_styleInitialFocusT2 = -1;
@@ -842,8 +842,8 @@ static void InitialFocusTest (void)
*/
g_bInitialFocusInitDlgResult = TRUE;
- g_hwndInitialFocusT1 = (HWND) -1;
- g_hwndInitialFocusT2 = (HWND) -1;
+ g_hwndInitialFocusT1 = HWND_TOPMOST;
+ g_hwndInitialFocusT2 = HWND_TOPMOST;
g_styleInitialFocusT1 = -1;
g_styleInitialFocusT2 = -1;
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index f8a3c41..d13063a 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -1819,7 +1819,7 @@ static BOOL fixup_flags( WINDOWPOS *winpos )
if (winpos->flags & SWP_NOZORDER) goto done;
/* fix sign extension */
- if (winpos->hwndInsertAfter == (HWND)0xffff) winpos->hwndInsertAfter = HWND_TOPMOST;
+ if (winpos->hwndInsertAfter == HWND_BROADCAST) winpos->hwndInsertAfter = HWND_TOPMOST;
else if (winpos->hwndInsertAfter == (HWND)0xfffe) winpos->hwndInsertAfter = HWND_NOTOPMOST;
/* hwndInsertAfter must be a sibling of the window */
--
1.7.0.1
More information about the wine-patches
mailing list