fix: don't call TaskDialogIndirect with disabled parent windows (#50078)

This commit is contained in:
Noah Gregory
2026-03-10 14:51:07 -04:00
committed by GitHub
parent 44b12fbb7b
commit f1705eccf8

View File

@@ -158,7 +158,7 @@ DialogResult ShowTaskDialogWstr(gfx::AcceleratedWidget parent,
config.hInstance = GetModuleHandle(nullptr);
config.dwFlags = flags;
if (parent) {
if (parent && ::IsWindowEnabled(parent)) {
config.hwndParent = parent;
config.dwFlags |= TDF_POSITION_RELATIVE_TO_WINDOW;
}