Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
d0ce7ec5
Commit
d0ce7ec5
authored
17 years ago
by
Paul Vriens
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
winetest: Put dll version information in the report.
parent
519b4ef4
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
programs/winetest/Makefile.in
+1
-1
1 addition, 1 deletion
programs/winetest/Makefile.in
programs/winetest/main.c
+35
-0
35 additions, 0 deletions
programs/winetest/main.c
with
36 additions
and
1 deletion
programs/winetest/Makefile.in
+
1
−
1
View file @
d0ce7ec5
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
winetest.exe
APPMODE
=
-mconsole
IMPORTS
=
comctl32 user32 gdi32 wsock32 kernel32
IMPORTS
=
comctl32
version
user32 gdi32 wsock32 kernel32
C_SRCS
=
\
gui.c
\
...
...
This diff is collapsed.
Click to expand it.
programs/winetest/main.c
+
35
−
0
View file @
d0ce7ec5
...
...
@@ -62,6 +62,39 @@ static struct rev_info *rev_infos = NULL;
static
const
char
whitespace
[]
=
"
\t\r\n
"
;
static
const
char
testexe
[]
=
"_test.exe"
;
static
char
*
get_file_version
(
char
*
file_name
)
{
static
char
version
[
32
];
DWORD
size
;
DWORD
handle
;
size
=
GetFileVersionInfoSizeA
(
file_name
,
&
handle
);
if
(
size
)
{
char
*
data
=
xmalloc
(
size
);
if
(
data
)
{
if
(
GetFileVersionInfoA
(
file_name
,
handle
,
size
,
data
))
{
static
char
backslash
[]
=
"
\\
"
;
VS_FIXEDFILEINFO
*
pFixedVersionInfo
;
UINT
len
;
if
(
VerQueryValueA
(
data
,
backslash
,
(
LPVOID
*
)
&
pFixedVersionInfo
,
&
len
))
{
sprintf
(
version
,
"%d.%d.%d.%d"
,
pFixedVersionInfo
->
dwFileVersionMS
>>
16
,
pFixedVersionInfo
->
dwFileVersionMS
&
0xffff
,
pFixedVersionInfo
->
dwFileVersionLS
>>
16
,
pFixedVersionInfo
->
dwFileVersionLS
&
0xffff
);
}
else
sprintf
(
version
,
"version not available"
);
}
else
sprintf
(
version
,
"unknown"
);
free
(
data
);
}
else
sprintf
(
version
,
"failed"
);
}
else
sprintf
(
version
,
"version not available"
);
return
version
;
}
static
int
running_under_wine
(
void
)
{
HMODULE
module
=
GetModuleHandleA
(
"ntdll.dll"
);
...
...
@@ -448,6 +481,8 @@ extract_test_proc (HMODULE hModule, LPCTSTR lpszType,
}
FreeLibrary
(
dll
);
xprintf
(
" %s=%s
\n
"
,
dllname
,
get_file_version
(
dllname
));
get_subtests
(
tempdir
,
&
wine_tests
[
nr_of_files
],
lpszName
);
nr_of_tests
+=
wine_tests
[
nr_of_files
].
subtest_count
;
nr_of_files
++
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment