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
7bef6dc8
Commit
7bef6dc8
authored
Mar 29, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Always start the 64-bit version of explorer.exe on Wow64.
parent
5433969e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
win.c
dlls/user32/win.c
+5
-1
No files found.
dlls/user32/win.c
View file @
7bef6dc8
...
...
@@ -1785,6 +1785,7 @@ HWND WINAPI GetDesktopWindow(void)
WCHAR
windir
[
MAX_PATH
];
WCHAR
app
[
MAX_PATH
+
sizeof
(
explorer
)
/
sizeof
(
WCHAR
)];
WCHAR
cmdline
[
MAX_PATH
+
(
sizeof
(
explorer
)
+
sizeof
(
args
))
/
sizeof
(
WCHAR
)];
void
*
redir
;
memset
(
&
si
,
0
,
sizeof
(
si
)
);
si
.
cb
=
sizeof
(
si
);
...
...
@@ -1793,11 +1794,13 @@ HWND WINAPI GetDesktopWindow(void)
si
.
hStdOutput
=
0
;
si
.
hStdError
=
GetStdHandle
(
STD_ERROR_HANDLE
);
Get
Windows
DirectoryW
(
windir
,
MAX_PATH
);
Get
System
DirectoryW
(
windir
,
MAX_PATH
);
strcpyW
(
app
,
windir
);
strcatW
(
app
,
explorer
);
strcpyW
(
cmdline
,
app
);
strcatW
(
cmdline
,
args
);
Wow64DisableWow64FsRedirection
(
&
redir
);
if
(
CreateProcessW
(
app
,
cmdline
,
NULL
,
NULL
,
FALSE
,
DETACHED_PROCESS
,
NULL
,
windir
,
&
si
,
&
pi
))
{
...
...
@@ -1807,6 +1810,7 @@ HWND WINAPI GetDesktopWindow(void)
CloseHandle
(
pi
.
hProcess
);
}
else
WARN
(
"failed to start explorer, err %d
\n
"
,
GetLastError
()
);
Wow64RevertWow64FsRedirection
(
redir
);
}
else
TRACE
(
"not starting explorer since winstation is not visible
\n
"
);
...
...
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