winver: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e22bcac706
commit
cb594c1c2e
|
@ -1,7 +1,8 @@
|
|||
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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue