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
1ab8907f
Commit
1ab8907f
authored
Jun 13, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 13, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed ambigous else/brace problem, moved "name" computation in
CreateProcess _before_ outputting it in the FIXME_()s.
parent
b8830034
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
module.c
loader/module.c
+21
-21
No files found.
loader/module.c
View file @
1ab8907f
...
...
@@ -1028,14 +1028,15 @@ static BOOL make_lpCommandLine_name( LPCSTR line, LPSTR name, int namelen,
}
while
(
1
);
/* if we have a non-null full path name in buffer then move to output */
if
(
retlen
)
if
(
strlen
(
buffer
)
<=
namelen
)
if
(
retlen
)
{
if
(
strlen
(
buffer
)
<=
namelen
)
{
strcpy
(
name
,
buffer
);
else
{
}
else
{
/* not enough space to return full path string */
FIXME_
(
module
)(
"internal string not long enough, need %d
\n
"
,
strlen
(
buffer
)
);
}
}
/* all done, indicate end of module name and then trace and exit */
if
(
after
)
*
after
=
from
;
...
...
@@ -1139,6 +1140,23 @@ BOOL WINAPI CreateProcessA( LPCSTR lpApplicationName, LPSTR lpCommandLine,
return
FALSE
;
}
/* Process the AppName or CmdLine to get module name and path */
name
[
0
]
=
'\0'
;
if
(
lpApplicationName
)
{
found_file
=
make_lpApplicationName_name
(
lpApplicationName
,
name
,
sizeof
(
name
)
);
cmdline
=
(
lpCommandLine
)
?
lpCommandLine
:
lpApplicationName
;
}
else
found_file
=
make_lpCommandLine_name
(
lpCommandLine
,
name
,
sizeof
(
name
),
&
cmdline
);
if
(
!
found_file
)
{
/* make an early exit if file not found - save second pass */
SetLastError
(
ERROR_FILE_NOT_FOUND
);
return
FALSE
;
}
/* Warn if unsupported features are used */
if
(
dwCreationFlags
&
CREATE_SUSPENDED
)
...
...
@@ -1197,24 +1215,6 @@ BOOL WINAPI CreateProcessA( LPCSTR lpApplicationName, LPSTR lpCommandLine,
if
(
lpStartupInfo
->
dwFlags
&
STARTF_USEHOTKEY
)
FIXME_
(
module
)(
"(%s,...): STARTF_USEHOTKEY ignored
\n
"
,
name
);
/* Process the AppName or CmdLine to get module name and path */
name
[
0
]
=
'\0'
;
if
(
lpApplicationName
)
{
found_file
=
make_lpApplicationName_name
(
lpApplicationName
,
name
,
sizeof
(
name
)
);
cmdline
=
(
lpCommandLine
)
?
lpCommandLine
:
lpApplicationName
;
}
else
found_file
=
make_lpCommandLine_name
(
lpCommandLine
,
name
,
sizeof
(
name
),
&
cmdline
);
if
(
!
found_file
)
{
/* make an early exit if file not found - save second pass */
SetLastError
(
ERROR_FILE_NOT_FOUND
);
return
FALSE
;
}
/* When in WineLib, always fork new Unix process */
if
(
__winelib
)
...
...
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