Default shadow storage to on when running under Wine

This commit is contained in:
Chris Koos committed 2026-10-31 15:02:30 -07:00
1 parent f469c5a774
commit d9d6264bb2
4 files changed
+10 -2

No files matched your search

+5
View File
@@ -1128,6 +1128,11 @@ int plat_os_version(char *out, size_t cap) {
return 1;
}
int plat_is_wine(void) {
HMODULE nt = GetModuleHandleW(L"ntdll.dll");
return nt && GetProcAddress(nt, "wine_get_version") != NULL;
}
int plat_stderr_path(char *out, size_t cap) {
HANDLE h = GetStdHandle(STD_ERROR_HANDLE);
wchar_t w[WPATH];