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
82c191f6
Commit
82c191f6
authored
Apr 23, 2004
by
Jakob Eriksson
Committed by
Alexandre Julliard
Apr 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Wine detection.
parent
18004567
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
main.c
programs/winetest/main.c
+10
-0
No files found.
programs/winetest/main.c
View file @
82c191f6
...
...
@@ -59,6 +59,14 @@ static struct rev_info *rev_infos = NULL;
static
const
char
*
wineloader
;
static
int
running_under_wine
()
{
HMODULE
module
=
GetModuleHandleA
(
"ntdll.dll"
);
if
(
!
module
)
return
0
;
return
(
GetProcAddress
(
module
,
"wine_get_unix_file_name"
)
!=
NULL
);
}
void
print_version
()
{
OSVERSIONINFOEX
ver
;
...
...
@@ -83,6 +91,8 @@ void print_version ()
" wSuiteMask=%d
\n
wProductType=%d
\n
wReserved=%d
\n
"
,
ver
.
wServicePackMajor
,
ver
.
wServicePackMinor
,
ver
.
wSuiteMask
,
ver
.
wProductType
,
ver
.
wReserved
);
xprintf
(
" bRunningUnderWine=%d
\n
"
,
running_under_wine
());
}
static
inline
int
is_dot_dir
(
const
char
*
x
)
...
...
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