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
d0fc60ad
Commit
d0fc60ad
authored
Nov 22, 1998
by
Juergen Schmied
Committed by
Alexandre Julliard
Nov 22, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementation of CreateProcess32W.
parent
74014635
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
6 deletions
+29
-6
module.c
loader/module.c
+29
-6
No files found.
loader/module.c
View file @
d0fc60ad
...
...
@@ -700,6 +700,8 @@ BOOL32 WINAPI CreateProcess32A( LPCSTR lpApplicationName, LPSTR lpCommandLine,
/**********************************************************************
* CreateProcess32W (KERNEL32.172)
* NOTES
* lpReserved is not converted
*/
BOOL32
WINAPI
CreateProcess32W
(
LPCWSTR
lpApplicationName
,
LPWSTR
lpCommandLine
,
LPSECURITY_ATTRIBUTES
lpProcessAttributes
,
...
...
@@ -708,13 +710,34 @@ BOOL32 WINAPI CreateProcess32W( LPCWSTR lpApplicationName, LPWSTR lpCommandLine,
LPVOID
lpEnvironment
,
LPCWSTR
lpCurrentDirectory
,
LPSTARTUPINFO32W
lpStartupInfo
,
LPPROCESS_INFORMATION
lpProcessInfo
)
{
FIXME
(
win32
,
"(%s,%s,...): stub
\n
"
,
debugstr_w
(
lpApplicationName
),
debugstr_w
(
lpCommandLine
));
{
BOOL32
ret
;
STARTUPINFO32A
StartupInfoA
;
LPSTR
lpApplicationNameA
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
lpApplicationName
);
LPSTR
lpCommandLineA
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
lpCommandLine
);
LPSTR
lpCurrentDirectoryA
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
lpCurrentDirectory
);
memcpy
(
&
StartupInfoA
,
lpStartupInfo
,
sizeof
(
STARTUPINFO32A
));
StartupInfoA
.
lpDesktop
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
lpStartupInfo
->
lpDesktop
);
StartupInfoA
.
lpTitle
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
lpStartupInfo
->
lpTitle
);
TRACE
(
win32
,
"(%s,%s,...)
\n
"
,
debugstr_w
(
lpApplicationName
),
debugstr_w
(
lpCommandLine
));
if
(
lpStartupInfo
->
lpReserved
)
FIXME
(
win32
,
"StartupInfo.lpReserved is used, please report (%s)
\n
"
,
debugstr_w
(
lpStartupInfo
->
lpReserved
));
ret
=
CreateProcess32A
(
lpApplicationNameA
,
lpCommandLineA
,
lpProcessAttributes
,
lpThreadAttributes
,
bInheritHandles
,
dwCreationFlags
,
lpEnvironment
,
lpCurrentDirectoryA
,
&
StartupInfoA
,
lpProcessInfo
);
HeapFree
(
GetProcessHeap
(),
0
,
lpCurrentDirectoryA
);
HeapFree
(
GetProcessHeap
(),
0
,
lpCommandLineA
);
HeapFree
(
GetProcessHeap
(),
0
,
StartupInfoA
.
lpDesktop
);
HeapFree
(
GetProcessHeap
(),
0
,
StartupInfoA
.
lpTitle
);
/* make from lcc uses system as fallback if CreateProcess returns
FALSE, so return false */
return
FALSE
;
return
ret
;
}
/***********************************************************************
...
...
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