Added Wine detection.

oldstable
Jakob Eriksson 2004-04-23 00:06:57 +00:00 committed by Alexandre Julliard
parent 180045676b
commit 82c191f65a
1 changed files with 10 additions and 0 deletions

View File

@ -59,6 +59,14 @@ static struct rev_info *rev_infos = NULL;
static const char *wineloader;
static int running_under_wine ()
{
HMODULE module = GetModuleHandleA("ntdll.dll");
if (!module) return 0;
return (GetProcAddress(module, "wine_get_unix_file_name") != NULL);
}
void print_version ()
{
OSVERSIONINFOEX ver;
@ -83,6 +91,8 @@ void print_version ()
" wSuiteMask=%d\n wProductType=%d\n wReserved=%d\n",
ver.wServicePackMajor, ver.wServicePackMinor, ver.wSuiteMask,
ver.wProductType, ver.wReserved);
xprintf (" bRunningUnderWine=%d\n", running_under_wine ());
}
static inline int is_dot_dir(const char* x)