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
2a95a8ae
Commit
2a95a8ae
authored
Nov 22, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 22, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Split process_action_return_value into two different functions.
parent
eb16fd51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
custom.c
dlls/msi/custom.c
+16
-16
No files found.
dlls/msi/custom.c
View file @
2a95a8ae
...
@@ -336,21 +336,21 @@ static void file_running_action(MSIPACKAGE* package, HANDLE Handle,
...
@@ -336,21 +336,21 @@ static void file_running_action(MSIPACKAGE* package, HANDLE Handle,
list_add_tail
(
&
package
->
RunningActions
,
&
action
->
entry
);
list_add_tail
(
&
package
->
RunningActions
,
&
action
->
entry
);
}
}
static
UINT
process_action_return_value
(
UINT
type
,
HANDLE
ThreadHandle
)
static
UINT
custom_get_process_return
(
HANDLE
process
)
{
{
DWORD
rc
=
0
;
DWORD
rc
=
0
;
if
(
type
==
2
)
{
GetExitCodeProcess
(
ThreadHandle
,
&
rc
);
if
(
rc
==
0
)
return
ERROR_SUCCESS
;
else
return
ERROR_FUNCTION_FAILED
;
}
GetExitCodeThread
(
ThreadHandle
,
&
rc
);
GetExitCodeProcess
(
process
,
&
rc
);
if
(
rc
!=
0
)
return
ERROR_FUNCTION_FAILED
;
return
ERROR_SUCCESS
;
}
static
UINT
custom_get_thread_return
(
HANDLE
thread
)
{
DWORD
rc
=
0
;
GetExitCodeThread
(
thread
,
&
rc
);
switch
(
rc
)
switch
(
rc
)
{
{
...
@@ -385,16 +385,16 @@ static UINT process_handle(MSIPACKAGE* package, UINT type,
...
@@ -385,16 +385,16 @@ static UINT process_handle(MSIPACKAGE* package, UINT type,
if
(
!
(
type
&
msidbCustomActionTypeContinue
))
if
(
!
(
type
&
msidbCustomActionTypeContinue
))
{
{
if
(
ProcessHandle
)
if
(
ProcessHandle
)
rc
=
process_action_return_value
(
2
,
ProcessHandle
);
rc
=
custom_get_process_return
(
ProcessHandle
);
else
else
rc
=
process_action_return_value
(
1
,
ThreadHandle
);
rc
=
custom_get_thread_return
(
ThreadHandle
);
}
}
CloseHandle
(
ThreadHandle
);
CloseHandle
(
ThreadHandle
);
if
(
ProcessHandle
)
if
(
ProcessHandle
)
CloseHandle
(
ProcessHandle
);
CloseHandle
(
ProcessHandle
);
}
}
else
else
{
{
TRACE
(
"Asynchronous Execution of action %s
\n
"
,
debugstr_w
(
Name
));
TRACE
(
"Asynchronous Execution of action %s
\n
"
,
debugstr_w
(
Name
));
/* asynchronous */
/* asynchronous */
...
...
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