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
3e5fecc6
Commit
3e5fecc6
authored
Oct 11, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Use BOOL type where appropriate.
parent
b7b5c887
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
main.c
programs/winetest/main.c
+7
-7
No files found.
programs/winetest/main.c
View file @
3e5fecc6
...
...
@@ -143,15 +143,15 @@ static char * get_file_version(char * file_name)
return
version
;
}
static
int
running_under_wine
(
void
)
static
BOOL
running_under_wine
(
void
)
{
HMODULE
module
=
GetModuleHandleA
(
"ntdll.dll"
);
if
(
!
module
)
return
0
;
if
(
!
module
)
return
FALSE
;
return
(
GetProcAddress
(
module
,
"wine_server_call"
)
!=
NULL
);
}
static
int
check_mount_mgr
(
void
)
static
BOOL
check_mount_mgr
(
void
)
{
HANDLE
handle
=
CreateFileA
(
"
\\\\
.
\\
MountPointManager"
,
GENERIC_READ
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
...
...
@@ -160,7 +160,7 @@ static int check_mount_mgr(void)
return
TRUE
;
}
static
int
check_wow64_registry
(
void
)
static
BOOL
check_wow64_registry
(
void
)
{
char
buffer
[
MAX_PATH
];
DWORD
type
,
size
=
MAX_PATH
;
...
...
@@ -175,7 +175,7 @@ static int check_wow64_registry(void)
return
ret
;
}
static
int
check_display_driver
(
void
)
static
BOOL
check_display_driver
(
void
)
{
HWND
hwnd
=
CreateWindowA
(
"STATIC"
,
""
,
WS_OVERLAPPEDWINDOW
,
CW_USEDEFAULT
,
0
,
CW_USEDEFAULT
,
0
,
0
,
0
,
GetModuleHandleA
(
0
),
0
);
...
...
@@ -184,7 +184,7 @@ static int check_display_driver(void)
return
TRUE
;
}
static
int
running_on_visible_desktop
(
void
)
static
BOOL
running_on_visible_desktop
(
void
)
{
HWND
desktop
;
HMODULE
huser32
=
GetModuleHandleA
(
"user32.dll"
);
...
...
@@ -407,7 +407,7 @@ static void print_language(void)
xprintf
(
" ThreadUILanguage=%x
\n
"
,
pGetThreadUILanguage
());
}
static
inline
int
is_dot_dir
(
const
char
*
x
)
static
inline
BOOL
is_dot_dir
(
const
char
*
x
)
{
return
((
x
[
0
]
==
'.'
)
&&
((
x
[
1
]
==
0
)
||
((
x
[
1
]
==
'.'
)
&&
(
x
[
2
]
==
0
))));
}
...
...
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