1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

log wine sysname and release

This commit is contained in:
FunkyFr3sh 2023-07-10 01:27:58 +02:00
parent 031cb25ec2
commit d7fa8ace6b

View File

@ -108,14 +108,27 @@ void dbg_init()
RegQueryValueExA(hkey, "BuildLab", NULL, NULL, (PVOID)&build, &build_size);
TRACE("%s (%s)\n", name, build);
}
const char* (CDECL * wine_get_version)() =
(void*)GetProcAddress(GetModuleHandleA("ntdll.dll"), "wine_get_version");
const char* (CDECL * wine_get_version)() =
(void*)GetProcAddress(GetModuleHandleA("ntdll.dll"), "wine_get_version");
if (wine_get_version)
{
TRACE("Wine version = %s\n", wine_get_version());
}
if (wine_get_version)
{
TRACE("Wine version = %s\n", wine_get_version());
}
void (CDECL* wine_get_host_version)(const char** sysname, const char** release) =
(void*)GetProcAddress(GetModuleHandleA("ntdll.dll"), "wine_get_host_version");
if (wine_get_host_version)
{
const char* sysname = NULL;
const char* release = NULL;
wine_get_host_version(&sysname, &release);
TRACE("Wine sysname = %s, release = %s\n", sysname, release);
}
}
}