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
88580a3a
Commit
88580a3a
authored
Mar 30, 2019
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uninstaller: Re-exec as 64-bit in wow64.
Signed-off-by:
Vincent Povirk
<
vincent@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e6ec186f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
main.c
programs/uninstaller/main.c
+25
-0
No files found.
programs/uninstaller/main.c
View file @
88580a3a
...
...
@@ -165,6 +165,31 @@ int wmain(int argc, WCHAR *argv[])
static
const
WCHAR
listW
[]
=
{
'-'
,
'-'
,
'l'
,
'i'
,
's'
,
't'
,
0
};
static
const
WCHAR
removeW
[]
=
{
'-'
,
'-'
,
'r'
,
'e'
,
'm'
,
'o'
,
'v'
,
'e'
,
0
};
int
i
=
1
;
BOOL
is_wow64
;
if
(
IsWow64Process
(
GetCurrentProcess
(),
&
is_wow64
)
&&
is_wow64
)
{
STARTUPINFOW
si
;
PROCESS_INFORMATION
pi
;
WCHAR
filename
[
MAX_PATH
];
void
*
redir
;
DWORD
exit_code
;
memset
(
&
si
,
0
,
sizeof
(
si
)
);
si
.
cb
=
sizeof
(
si
);
GetModuleFileNameW
(
0
,
filename
,
MAX_PATH
);
Wow64DisableWow64FsRedirection
(
&
redir
);
if
(
CreateProcessW
(
filename
,
GetCommandLineW
(),
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
si
,
&
pi
))
{
WINE_TRACE
(
"restarting %s
\n
"
,
wine_dbgstr_w
(
filename
)
);
WaitForSingleObject
(
pi
.
hProcess
,
INFINITE
);
GetExitCodeProcess
(
pi
.
hProcess
,
&
exit_code
);
ExitProcess
(
exit_code
);
}
else
WINE_ERR
(
"failed to restart 64-bit %s, err %d
\n
"
,
wine_dbgstr_w
(
filename
),
GetLastError
()
);
Wow64RevertWow64FsRedirection
(
redir
);
}
while
(
i
<
argc
)
{
...
...
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