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
7fce92ea
Commit
7fce92ea
authored
Aug 12, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Aug 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd.exe: Redirection for external programs was broken by the conversion to unicode.
parent
902a384b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wcmdmain.c
programs/cmd/wcmdmain.c
+3
-3
No files found.
programs/cmd/wcmdmain.c
View file @
7fce92ea
...
...
@@ -839,13 +839,13 @@ static void init_msvcrt_io_block(STARTUPINFO* st)
* to change those std handles (this depends on the way wcmd sets
* it's new input & output handles)
*/
size_t
sz
=
max
(
sizeof
(
unsigned
)
+
(
sizeof
(
WCHAR
)
+
sizeof
(
HANDLE
))
*
3
,
st_p
.
cbReserved2
);
size_t
sz
=
max
(
sizeof
(
unsigned
)
+
(
sizeof
(
char
)
+
sizeof
(
HANDLE
))
*
3
,
st_p
.
cbReserved2
);
BYTE
*
ptr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sz
);
if
(
ptr
)
{
unsigned
num
=
*
(
unsigned
*
)
st_p
.
lpReserved2
;
WCHAR
*
flags
=
(
WCHAR
*
)(
ptr
+
sizeof
(
unsigned
));
HANDLE
*
handles
=
(
HANDLE
*
)(
flags
+
num
*
sizeof
(
WCHAR
));
char
*
flags
=
(
char
*
)(
ptr
+
sizeof
(
unsigned
));
HANDLE
*
handles
=
(
HANDLE
*
)(
flags
+
num
*
sizeof
(
char
));
memcpy
(
ptr
,
st_p
.
lpReserved2
,
st_p
.
cbReserved2
);
st
->
cbReserved2
=
sz
;
...
...
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