Commit cb594c1c authored by Alexandre Julliard's avatar Alexandre Julliard

winver: Build with msvcrt.

parent e22bcac7
MODULE = winver.exe
APPMODE = -mwindows
IMPORTS = shell32
EXTRADLLFLAGS = -mwindows -mno-cygwin
C_SRCS = winver.c
RC_SRCS = version.rc
......@@ -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 );
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment