This commit is contained in:
恍兮惚兮 2024-04-19 13:39:58 +08:00
parent cab1a008e7
commit 2d6be14fa5
2 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{
"version":"v2.45.9",
"version":"v2.45.10",
"themes":{
"dark":[
{"file":"dark1.qss","name":"PyQtDarkTheme"},

View File

@ -34,8 +34,14 @@ int lewmain(int argc, wchar_t *argv[])
ULONG64 Unused = 0;
} LEB;
GetTimeZoneInformation(&LEB.Timezone);
((LONG(__stdcall *)(decltype(&LEB), LPCWSTR appName, LPWSTR commandLine, LPCWSTR currentDir, void *, void *, PROCESS_INFORMATION *, void *, void *, void *, void *))
GetProcAddress(localeEmulator, "LeCreateProcess"))(&LEB, NULL, cmd_x, path.c_str(), NULL, NULL, &info, NULL, NULL, NULL, NULL);
auto ret = ((LONG(__stdcall *)(decltype(&LEB), LPCWSTR appName, LPWSTR commandLine, LPCWSTR currentDir, void *, void *, PROCESS_INFORMATION *, void *, void *, void *, void *))
GetProcAddress(localeEmulator, "LeCreateProcess"))(&LEB, NULL, cmd_x, path.c_str(), NULL, NULL, &info, NULL, NULL, NULL, NULL);
if (ret == 0)
{
WaitForSingleObject(info.hProcess, INFINITE);
CloseHandle(info.hProcess);
CloseHandle(info.hThread);
}
}
return 1;
}