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
0516d969
Commit
0516d969
authored
Apr 08, 2015
by
Hugh McMaster
Committed by
Alexandre Julliard
Apr 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Do not truncate argument strings larger than 256 bytes.
parent
69047ed4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
wineconsole.c
programs/wineconsole/wineconsole.c
+13
-2
No files found.
programs/wineconsole/wineconsole.c
View file @
0516d969
...
...
@@ -830,13 +830,24 @@ int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmdLine, INT nCmdSh
break
;
case
from_process_name
:
{
WCHAR
buffer
[
256
];
int
len
;
WCHAR
*
buffer
;
MultiByteToWideChar
(
CP_ACP
,
0
,
wci
.
ptr
,
-
1
,
buffer
,
sizeof
(
buffer
)
/
sizeof
(
buffer
[
0
]));
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
wci
.
ptr
,
-
1
,
NULL
,
0
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
if
(
!
buffer
)
return
0
;
MultiByteToWideChar
(
CP_ACP
,
0
,
wci
.
ptr
,
-
1
,
buffer
,
len
);
if
(
!
(
data
=
WINECON_Init
(
hInst
,
GetCurrentProcessId
(),
buffer
,
wci
.
backend
,
nCmdShow
)))
{
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
return
0
;
}
ret
=
WINECON_Spawn
(
data
,
buffer
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
if
(
!
ret
)
{
WINECON_Delete
(
data
);
...
...
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