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
189ac56e
Commit
189ac56e
authored
Oct 22, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Use BOOL type where appropriate.
parent
3e3efd1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
shutdown.c
programs/wineboot/shutdown.c
+2
-2
wineboot.c
programs/wineboot/wineboot.c
+10
-9
No files found.
programs/wineboot/shutdown.c
View file @
189ac56e
...
...
@@ -335,14 +335,14 @@ static BOOL CALLBACK shutdown_one_desktop( LPWSTR name, LPARAM force )
if
(
hdesk
==
NULL
)
{
WINE_ERR
(
"Cannot open desktop %s, err=%i
\n
"
,
wine_dbgstr_w
(
name
),
GetLastError
());
return
0
;
return
FALSE
;
}
if
(
!
SetThreadDesktop
(
hdesk
))
{
CloseDesktop
(
hdesk
);
WINE_ERR
(
"Cannot set thread desktop %s, err=%i
\n
"
,
wine_dbgstr_w
(
name
),
GetLastError
());
return
0
;
return
FALSE
;
}
CloseDesktop
(
hdesk
);
...
...
programs/wineboot/wineboot.c
View file @
189ac56e
...
...
@@ -948,7 +948,7 @@ static HANDLE start_rundll32( const char *inf_path, BOOL wow64 )
}
/* execute rundll32 on the wine.inf file if necessary */
static
void
update_wineprefix
(
int
force
)
static
void
update_wineprefix
(
BOOL
force
)
{
const
char
*
config_dir
=
wine_get_config_dir
();
char
*
inf_path
=
get_wine_inf_path
();
...
...
@@ -1123,11 +1123,12 @@ int main( int argc, char *argv[] )
/* First, set the current directory to SystemRoot */
int
optc
;
int
end_session
=
0
,
force
=
0
,
init
=
0
,
kill
=
0
,
restart
=
0
,
shutdown
=
0
,
update
=
0
;
BOOL
end_session
,
force
,
init
,
kill
,
restart
,
shutdown
,
update
;
HANDLE
event
;
SECURITY_ATTRIBUTES
sa
;
BOOL
is_wow64
;
end_session
=
force
=
init
=
kill
=
restart
=
shutdown
=
update
=
FALSE
;
GetWindowsDirectoryW
(
windowsdir
,
MAX_PATH
);
if
(
!
SetCurrentDirectoryW
(
windowsdir
)
)
WINE_ERR
(
"Cannot set the dir to %s (%d)
\n
"
,
wine_dbgstr_w
(
windowsdir
),
GetLastError
()
);
...
...
@@ -1160,13 +1161,13 @@ int main( int argc, char *argv[] )
{
switch
(
optc
)
{
case
'e'
:
end_session
=
1
;
break
;
case
'f'
:
force
=
1
;
break
;
case
'i'
:
init
=
1
;
break
;
case
'k'
:
kill
=
1
;
break
;
case
'r'
:
restart
=
1
;
break
;
case
's'
:
shutdown
=
1
;
break
;
case
'u'
:
update
=
1
;
break
;
case
'e'
:
end_session
=
TRUE
;
break
;
case
'f'
:
force
=
TRUE
;
break
;
case
'i'
:
init
=
TRUE
;
break
;
case
'k'
:
kill
=
TRUE
;
break
;
case
'r'
:
restart
=
TRUE
;
break
;
case
's'
:
shutdown
=
TRUE
;
break
;
case
'u'
:
update
=
TRUE
;
break
;
case
'h'
:
usage
();
return
0
;
case
'?'
:
usage
();
return
1
;
}
...
...
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