Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e75096a0
Commit
e75096a0
authored
Jun 24, 2002
by
Andreas Mohr
Committed by
Alexandre Julliard
Jun 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made initialization more verbose in case of errors.
parent
ff4525ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
4 deletions
+27
-4
wineconsole.c
programs/wineconsole/wineconsole.c
+27
-4
No files found.
programs/wineconsole/wineconsole.c
View file @
e75096a0
...
...
@@ -420,7 +420,7 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, void* pid)
/******************************************************************
* WINECON_Spawn
*
* Spawn the child process
us
when invoked with wineconsole foo bar
* Spawn the child process when invoked with wineconsole foo bar
*/
static
BOOL
WINECON_Spawn
(
struct
inner_data
*
data
,
LPCSTR
lpCmdLine
)
{
...
...
@@ -495,19 +495,42 @@ int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmdLine, INT nCmdSh
/* case of wineconsole <evt>, signal process that created us that we're up and running */
if
(
WINECON_HasEvent
(
lpCmdLine
,
&
evt
))
{
if
(
!
(
data
=
WINECON_Init
(
hInst
,
0
)))
return
0
;
if
(
!
(
data
=
WINECON_Init
(
hInst
,
0
)))
{
WINE_ERR
(
"failed to init1 wineconsole.
\n
"
);
return
0
;
}
ret
=
SetEvent
((
HANDLE
)
evt
);
if
(
!
ret
)
{
WINE_ERR
(
"SetEvent failed.
\n
"
);
goto
cleanup
;
}
}
else
{
if
(
!
(
data
=
WINECON_Init
(
hInst
,
(
void
*
)
GetCurrentProcessId
())))
return
0
;
if
(
!
(
data
=
WINECON_Init
(
hInst
,
(
void
*
)
GetCurrentProcessId
())))
{
WINE_ERR
(
"failed to init2 wineconsole.
\n
"
);
return
0
;
}
ret
=
WINECON_Spawn
(
data
,
lpCmdLine
);
if
(
!
ret
)
{
WINE_MESSAGE
(
"wineconsole: spawning client program failed. Invalid/missing command line arguments ?
\n
"
);
goto
cleanup
;
}
}
if
(
ret
&&
WCUSER_InitBackend
(
data
))
if
(
WCUSER_InitBackend
(
data
))
{
WINE_TRACE
(
"calling MainLoop.
\n
"
);
ret
=
data
->
fnMainLoop
(
data
);
}
else
WINE_ERR
(
"WCUSER_InitBackend failed.
\n
"
);
cleanup:
WINECON_Delete
(
data
);
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