[idd] ipc/helper: notify the helper if a software renderer is in use

This commit is contained in:
Geoffrey McRae authored and Geoffrey McRae committed 2026-06-04 01:45:35 +10:00
1 parent b3701992c1
commit 37bb89f490
12 files changed
+63 -161

No files matched your search

+4 -2
View File
@@ -113,11 +113,13 @@ int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _
return EXIT_FAILURE;
}
CNotifyWindow& window = CNotifyWindow::instance();
// the pipe must be initialized after the CNotifyWindow
// has been created to avoid a potential race
if (!g_pipe.Init())
return EXIT_FAILURE;
CNotifyWindow window;
HANDLE hWait;
if (!RegisterWaitForSingleObject(&hWait, hParent.Get(), DestroyNotifyWindow, &window, INFINITE, WT_EXECUTEONLYONCE))
DEBUG_ERROR_HR(GetLastError(), "Failed to RegisterWaitForSingleObject");