Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5da7043c
Commit
5da7043c
authored
Jan 15, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Run tests again on Win95.
parent
147ea8b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
10 deletions
+22
-10
win.c
dlls/user32/tests/win.c
+22
-10
No files found.
dlls/user32/tests/win.c
View file @
5da7043c
...
@@ -52,6 +52,7 @@ static BOOL (WINAPI *pSetLayeredWindowAttributes)(HWND,COLORREF,BYTE,DWORD);
...
@@ -52,6 +52,7 @@ static BOOL (WINAPI *pSetLayeredWindowAttributes)(HWND,COLORREF,BYTE,DWORD);
static
BOOL
(
WINAPI
*
pGetMonitorInfoA
)(
HMONITOR
,
LPMONITORINFO
);
static
BOOL
(
WINAPI
*
pGetMonitorInfoA
)(
HMONITOR
,
LPMONITORINFO
);
static
HMONITOR
(
WINAPI
*
pMonitorFromPoint
)(
POINT
,
DWORD
);
static
HMONITOR
(
WINAPI
*
pMonitorFromPoint
)(
POINT
,
DWORD
);
static
int
(
WINAPI
*
pGetWindowRgnBox
)(
HWND
,
LPRECT
);
static
int
(
WINAPI
*
pGetWindowRgnBox
)(
HWND
,
LPRECT
);
static
BOOL
(
WINAPI
*
pGetGUIThreadInfo
)(
DWORD
,
GUITHREADINFO
*
);
static
BOOL
test_lbuttondown_flag
;
static
BOOL
test_lbuttondown_flag
;
static
HWND
hwndMessage
;
static
HWND
hwndMessage
;
...
@@ -2707,12 +2708,15 @@ static LRESULT CALLBACK test_capture_4_proc(HWND hWnd, UINT msg, WPARAM wParam,
...
@@ -2707,12 +2708,15 @@ static LRESULT CALLBACK test_capture_4_proc(HWND hWnd, UINT msg, WPARAM wParam,
case
WM_CAPTURECHANGED
:
case
WM_CAPTURECHANGED
:
/* now try to release capture from menu. this should fail */
/* now try to release capture from menu. this should fail */
memset
(
&
gti
,
0
,
sizeof
(
GUITHREADINFO
));
if
(
pGetGUIThreadInfo
)
gti
.
cbSize
=
sizeof
(
GUITHREADINFO
);
{
status
=
GetGUIThreadInfo
(
GetCurrentThreadId
(),
&
gti
);
memset
(
&
gti
,
0
,
sizeof
(
GUITHREADINFO
));
ok
(
status
,
"GetGUIThreadInfo() failed!
\n
"
);
gti
.
cbSize
=
sizeof
(
GUITHREADINFO
);
status
=
pGetGUIThreadInfo
(
GetCurrentThreadId
(),
&
gti
);
ok
(
status
,
"GetGUIThreadInfo() failed!
\n
"
);
ok
(
gti
.
flags
&
GUI_INMENUMODE
,
"Thread info incorrect (flags=%08X)!
\n
"
,
gti
.
flags
);
}
cap_wnd
=
GetCapture
();
cap_wnd
=
GetCapture
();
ok
(
gti
.
flags
&
GUI_INMENUMODE
,
"Thread info incorrect (flags=%08X)!
\n
"
,
gti
.
flags
);
/* check that re-setting the capture for the menu fails */
/* check that re-setting the capture for the menu fails */
set_cap_wnd
=
SetCapture
(
cap_wnd
);
set_cap_wnd
=
SetCapture
(
cap_wnd
);
...
@@ -2727,11 +2731,14 @@ static LRESULT CALLBACK test_capture_4_proc(HWND hWnd, UINT msg, WPARAM wParam,
...
@@ -2727,11 +2731,14 @@ static LRESULT CALLBACK test_capture_4_proc(HWND hWnd, UINT msg, WPARAM wParam,
ok
(
!
status
,
"ReleaseCapture should have failed!
\n
"
);
ok
(
!
status
,
"ReleaseCapture should have failed!
\n
"
);
/* check that thread info did not change */
/* check that thread info did not change */
memset
(
&
gti
,
0
,
sizeof
(
GUITHREADINFO
));
if
(
pGetGUIThreadInfo
)
gti
.
cbSize
=
sizeof
(
GUITHREADINFO
);
{
status
=
GetGUIThreadInfo
(
GetCurrentThreadId
(),
&
gti
);
memset
(
&
gti
,
0
,
sizeof
(
GUITHREADINFO
));
ok
(
status
,
"GetGUIThreadInfo() failed!
\n
"
);
gti
.
cbSize
=
sizeof
(
GUITHREADINFO
);
ok
(
gti
.
flags
&
GUI_INMENUMODE
,
"Thread info incorrect (flags=%08X)!
\n
"
,
gti
.
flags
);
status
=
pGetGUIThreadInfo
(
GetCurrentThreadId
(),
&
gti
);
ok
(
status
,
"GetGUIThreadInfo() failed!
\n
"
);
ok
(
gti
.
flags
&
GUI_INMENUMODE
,
"Thread info incorrect (flags=%08X)!
\n
"
,
gti
.
flags
);
}
/* verify that no capture change took place */
/* verify that no capture change took place */
cap_wnd2
=
GetCapture
();
cap_wnd2
=
GetCapture
();
...
@@ -2755,6 +2762,10 @@ static void test_capture_4(void)
...
@@ -2755,6 +2762,10 @@ static void test_capture_4(void)
HWND
hwnd
;
HWND
hwnd
;
WNDCLASSA
wclass
;
WNDCLASSA
wclass
;
HINSTANCE
hInstance
=
GetModuleHandleA
(
NULL
);
HINSTANCE
hInstance
=
GetModuleHandleA
(
NULL
);
if
(
!
pGetGUIThreadInfo
)
win_skip
(
"GetGUIThreadInfo is not available
\n
"
);
wclass
.
lpszClassName
=
"TestCapture4Class"
;
wclass
.
lpszClassName
=
"TestCapture4Class"
;
wclass
.
style
=
CS_HREDRAW
|
CS_VREDRAW
;
wclass
.
style
=
CS_HREDRAW
|
CS_VREDRAW
;
wclass
.
lpfnWndProc
=
test_capture_4_proc
;
wclass
.
lpfnWndProc
=
test_capture_4_proc
;
...
@@ -5881,6 +5892,7 @@ START_TEST(win)
...
@@ -5881,6 +5892,7 @@ START_TEST(win)
pGetMonitorInfoA
=
(
void
*
)
GetProcAddress
(
user32
,
"GetMonitorInfoA"
);
pGetMonitorInfoA
=
(
void
*
)
GetProcAddress
(
user32
,
"GetMonitorInfoA"
);
pMonitorFromPoint
=
(
void
*
)
GetProcAddress
(
user32
,
"MonitorFromPoint"
);
pMonitorFromPoint
=
(
void
*
)
GetProcAddress
(
user32
,
"MonitorFromPoint"
);
pGetWindowRgnBox
=
(
void
*
)
GetProcAddress
(
user32
,
"GetWindowRgnBox"
);
pGetWindowRgnBox
=
(
void
*
)
GetProcAddress
(
user32
,
"GetWindowRgnBox"
);
pGetGUIThreadInfo
=
(
void
*
)
GetProcAddress
(
user32
,
"GetGUIThreadInfo"
);
if
(
!
RegisterWindowClasses
())
assert
(
0
);
if
(
!
RegisterWindowClasses
())
assert
(
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment