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
ffcced0f
Commit
ffcced0f
authored
Feb 20, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Handle context generation failure better.
parent
eb19c391
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
compobj.c
dlls/ole32/tests/compobj.c
+12
-3
No files found.
dlls/ole32/tests/compobj.c
View file @
ffcced0f
...
...
@@ -192,7 +192,13 @@ static HANDLE activate_context(const char *manifest, ULONG_PTR *cookie)
actctx
.
lpSource
=
path
;
handle
=
pCreateActCtxW
(
&
actctx
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
ok
(
handle
!=
INVALID_HANDLE_VALUE
||
broken
(
handle
==
INVALID_HANDLE_VALUE
)
/* some old XP/2k3 versions */
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
if
(
handle
==
INVALID_HANDLE_VALUE
)
{
win_skip
(
"activation context generation failed, some tests will be skipped
\n
"
);
handle
=
NULL
;
}
ok
(
actctx
.
cbSize
==
sizeof
(
ACTCTXW
),
"actctx.cbSize=%d
\n
"
,
actctx
.
cbSize
);
ok
(
actctx
.
dwFlags
==
0
,
"actctx.dwFlags=%d
\n
"
,
actctx
.
dwFlags
);
...
...
@@ -206,8 +212,11 @@ static HANDLE activate_context(const char *manifest, ULONG_PTR *cookie)
DeleteFileA
(
"file.manifest"
);
ret
=
pActivateActCtx
(
handle
,
cookie
);
ok
(
ret
,
"ActivateActCtx failed: %u
\n
"
,
GetLastError
());
if
(
handle
)
{
ret
=
pActivateActCtx
(
handle
,
cookie
);
ok
(
ret
,
"ActivateActCtx failed: %u
\n
"
,
GetLastError
());
}
return
handle
;
}
...
...
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