Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f54a6617
Commit
f54a6617
authored
Jan 25, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Reload library before starting version 6 tests.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d41f22bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
treeview.c
dlls/comctl32/tests/treeview.c
+0
-11
v6util.h
dlls/comctl32/tests/v6util.h
+6
-0
No files found.
dlls/comctl32/tests/treeview.c
View file @
f54a6617
...
...
@@ -1342,9 +1342,6 @@ static LRESULT CALLBACK parent_wnd_proc(HWND hWnd, UINT message, WPARAM wParam,
break
;
}
case
WM_DESTROY
:
PostQuitMessage
(
0
);
break
;
}
defwndproc_counter
++
;
...
...
@@ -2682,7 +2679,6 @@ START_TEST(treeview)
ULONG_PTR
ctx_cookie
;
HANDLE
hCtx
;
WNDCLASSA
wc
;
MSG
msg
;
init_functions
();
...
...
@@ -2760,11 +2756,4 @@ START_TEST(treeview)
test_WM_GETDLGCODE
();
unload_v6_module
(
ctx_cookie
,
hCtx
);
PostMessageA
(
hMainWnd
,
WM_CLOSE
,
0
,
0
);
while
(
GetMessageA
(
&
msg
,
0
,
0
,
0
))
{
TranslateMessage
(
&
msg
);
DispatchMessageA
(
&
msg
);
}
}
dlls/comctl32/tests/v6util.h
View file @
f54a6617
...
...
@@ -70,6 +70,7 @@ static BOOL load_v6_module(ULONG_PTR *pcookie, HANDLE *hCtx)
{
ACTCTX_SECTION_KEYED_DATA
data
;
DWORD
written
;
HMODULE
hmod
;
ACTCTXA
ctx
;
HANDLE
file
;
BOOL
ret
;
...
...
@@ -103,6 +104,8 @@ static BOOL load_v6_module(ULONG_PTR *pcookie, HANDLE *hCtx)
*
hCtx
=
CreateActCtxA
(
&
ctx
);
ok
(
*
hCtx
!=
0
,
"Expected context handle
\n
"
);
hmod
=
GetModuleHandleA
(
"comctl32.dll"
);
ret
=
ActivateActCtx
(
*
hCtx
,
pcookie
);
ok
(
ret
,
"Failed to activate context, error %d.
\n
"
,
GetLastError
());
...
...
@@ -117,7 +120,10 @@ static BOOL load_v6_module(ULONG_PTR *pcookie, HANDLE *hCtx)
"comctl32.dll"
,
&
data
);
ok
(
ret
,
"failed to find comctl32.dll in active context, %u
\n
"
,
GetLastError
());
if
(
ret
)
{
FreeLibrary
(
hmod
);
LoadLibraryA
(
"comctl32.dll"
);
}
return
ret
;
}
...
...
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