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
3a30013b
Commit
3a30013b
authored
Oct 18, 1998
by
Chad Powell
Committed by
Alexandre Julliard
Oct 18, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ability to read a startup program from wine.ini file.
Put it in section [programs] key Startup.
parent
6c1b3e74
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
main.c
miscemu/main.c
+7
-1
No files found.
miscemu/main.c
View file @
3a30013b
...
@@ -47,7 +47,7 @@ BOOL32 MAIN_EmulatorInit(void)
...
@@ -47,7 +47,7 @@ BOOL32 MAIN_EmulatorInit(void)
int
main
(
int
argc
,
char
*
argv
[]
)
int
main
(
int
argc
,
char
*
argv
[]
)
{
{
extern
char
*
DEBUG_argv0
;
extern
char
*
DEBUG_argv0
;
char
startProg
[
256
];
int
i
,
loaded
;
int
i
,
loaded
;
HINSTANCE32
handle
;
HINSTANCE32
handle
;
...
@@ -86,6 +86,12 @@ int main( int argc, char *argv[] )
...
@@ -86,6 +86,12 @@ int main( int argc, char *argv[] )
/* This needs to be done just before task-switching starts */
/* This needs to be done just before task-switching starts */
loaded
=
0
;
loaded
=
0
;
/* Add the Startup Program to the run list */
PROFILE_GetWineIniString
(
"programs"
,
"Startup"
,
""
,
startProg
,
sizeof
(
startProg
)
);
if
(
startProg
[
0
])
argv
[
argc
++
]
=
startProg
;
for
(
i
=
1
;
i
<
argc
;
i
++
)
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
{
if
((
handle
=
WinExec32
(
argv
[
i
],
SW_SHOWNORMAL
))
<
32
)
if
((
handle
=
WinExec32
(
argv
[
i
],
SW_SHOWNORMAL
))
<
32
)
...
...
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