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
358fa6cd
Commit
358fa6cd
authored
Jun 21, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: XP SP3 comctl32 V6 test workaround.
parent
6e093655
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
17 deletions
+34
-17
listview.c
dlls/comctl32/tests/listview.c
+34
-17
No files found.
dlls/comctl32/tests/listview.c
View file @
358fa6cd
...
...
@@ -3410,6 +3410,24 @@ static BOOL is_below_comctl_5(void)
return
!
ret
;
}
static
void
unload_v6_module
(
ULONG_PTR
cookie
)
{
HANDLE
hKernel32
;
BOOL
(
WINAPI
*
pDeactivateActCtx
)(
DWORD
,
ULONG_PTR
);
hKernel32
=
GetModuleHandleA
(
"kernel32.dll"
);
pDeactivateActCtx
=
(
void
*
)
GetProcAddress
(
hKernel32
,
"DeactivateActCtx"
);
if
(
!
pDeactivateActCtx
)
{
win_skip
(
"Activation contexts unsupported
\n
"
);
return
;
}
pDeactivateActCtx
(
0
,
cookie
);
DeleteFileA
(
manifest_name
);
}
static
BOOL
load_v6_module
(
ULONG_PTR
*
pcookie
)
{
HANDLE
hKernel32
;
...
...
@@ -3421,6 +3439,7 @@ static BOOL load_v6_module(ULONG_PTR *pcookie)
BOOL
ret
;
HANDLE
file
;
DWORD
written
;
HWND
hwnd
;
hKernel32
=
GetModuleHandleA
(
"kernel32.dll"
);
pCreateActCtxA
=
(
void
*
)
GetProcAddress
(
hKernel32
,
"CreateActCtxA"
);
...
...
@@ -3468,26 +3487,24 @@ static BOOL load_v6_module(ULONG_PTR *pcookie)
win_skip
(
"A problem during context activation occured.
\n
"
);
DeleteFileA
(
manifest_name
);
}
return
ret
;
}
static
void
unload_v6_module
(
ULONG_PTR
cookie
)
{
HANDLE
hKernel32
;
BOOL
(
WINAPI
*
pDeactivateActCtx
)(
DWORD
,
ULONG_PTR
);
hKernel32
=
GetModuleHandleA
(
"kernel32.dll"
);
pDeactivateActCtx
=
(
void
*
)
GetProcAddress
(
hKernel32
,
"DeactivateActCtx"
);
if
(
!
pDeactivateActCtx
)
else
{
win_skip
(
"Activation contexts unsupported
\n
"
);
return
;
/* this is a XP SP3 failure workaround */
hwnd
=
CreateWindowExA
(
0
,
WC_LISTVIEW
,
"foo"
,
WS_CHILD
|
WS_BORDER
|
WS_VISIBLE
|
LVS_REPORT
,
0
,
0
,
100
,
100
,
hwndparent
,
NULL
,
GetModuleHandleA
(
NULL
),
NULL
);
if
(
!
IsWindow
(
hwnd
))
{
win_skip
(
"FIXME: failed to create ListView window.
\n
"
);
unload_v6_module
(
*
pcookie
);
return
FALSE
;
}
else
DestroyWindow
(
hwnd
);
}
pDeactivateActCtx
(
0
,
cookie
);
DeleteFileA
(
manifest_name
);
return
ret
;
}
static
void
test_get_set_view
(
void
)
...
...
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