winver: Build with msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-04-09 09:44:59 +02:00
parent e22bcac706
commit cb594c1c2e
2 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,8 @@
MODULE = winver.exe
APPMODE = -mwindows
IMPORTS = shell32
EXTRADLLFLAGS = -mwindows -mno-cygwin
C_SRCS = winver.c
RC_SRCS = version.rc

View File

@ -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 );
}