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
d0ce7ec5
Commit
d0ce7ec5
authored
Aug 23, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Aug 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Put dll version information in the report.
parent
519b4ef4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
Makefile.in
programs/winetest/Makefile.in
+1
-1
main.c
programs/winetest/main.c
+35
-0
No files found.
programs/winetest/Makefile.in
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
\
...
...
programs/winetest/main.c
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
++
;
...
...
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