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
d34b3021
Commit
d34b3021
authored
Feb 07, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
69a9931a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
Makefile.in
programs/winetest/Makefile.in
+0
-1
main.c
programs/winetest/main.c
+3
-3
No files found.
programs/winetest/Makefile.in
View file @
d34b3021
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
winetest.exe
IMPORTS
=
uuid comctl32 version user32 gdi32 advapi32 wsock32 msvcrt
DELAYIMPORTS
=
ole32
...
...
programs/winetest/main.c
View file @
d34b3021
...
...
@@ -124,7 +124,7 @@ static char * get_file_version(char * file_name)
VS_FIXEDFILEINFO
*
pFixedVersionInfo
;
UINT
len
;
if
(
VerQueryValueA
(
data
,
backslash
,
(
LPVOID
*
)
&
pFixedVersionInfo
,
&
len
))
{
sprintf
(
version
,
"%
d.%d.%d.%
d"
,
sprintf
(
version
,
"%
ld.%ld.%ld.%l
d"
,
pFixedVersionInfo
->
dwFileVersionMS
>>
16
,
pFixedVersionInfo
->
dwFileVersionMS
&
0xffff
,
pFixedVersionInfo
->
dwFileVersionLS
>>
16
,
...
...
@@ -132,14 +132,14 @@ static char * get_file_version(char * file_name)
}
else
sprintf
(
version
,
"version not found"
);
}
else
sprintf
(
version
,
"version error %u"
,
GetLastError
());
sprintf
(
version
,
"version error %
l
u"
,
GetLastError
());
heap_free
(
data
);
}
else
sprintf
(
version
,
"version error %u"
,
ERROR_OUTOFMEMORY
);
}
else
if
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
)
sprintf
(
version
,
"dll is missing"
);
else
sprintf
(
version
,
"version not present %u"
,
GetLastError
());
sprintf
(
version
,
"version not present %
l
u"
,
GetLastError
());
return
version
;
}
...
...
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