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
cb594c1c
Commit
cb594c1c
authored
Apr 09, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winver: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e22bcac7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
Makefile.in
programs/winver/Makefile.in
+2
-1
winver.c
programs/winver/winver.c
+6
-2
No files found.
programs/winver/Makefile.in
View file @
cb594c1c
MODULE
=
winver.exe
APPMODE
=
-mwindows
IMPORTS
=
shell32
EXTRADLLFLAGS
=
-mwindows
-mno-cygwin
C_SRCS
=
winver.c
RC_SRCS
=
version.rc
programs/winver/winver.c
View file @
cb594c1c
...
...
@@ -18,11 +18,15 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "windows.h"
#include "shellapi.h"
int
PASCAL
WinMain
(
HINSTANCE
inst
,
HINSTANCE
prev
,
LPSTR
cmdline
,
int
show
)
{
return
!
ShellAboutA
(
NULL
,
PACKAGE_NAME
,
PACKAGE_STRING
,
0
);
char
name
[
128
]
=
"Wine "
;
const
char
*
(
CDECL
*
wine_get_version
)(
void
);
wine_get_version
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"ntdll.dll"
),
"wine_get_version"
);
if
(
wine_get_version
)
strcat
(
name
,
wine_get_version
()
);
return
!
ShellAboutA
(
NULL
,
name
,
NULL
,
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