diff options
Diffstat (limited to 'src/mingwMain/kotlin/moe/yuuta/aero/Aero.kt')
-rw-r--r-- | src/mingwMain/kotlin/moe/yuuta/aero/Aero.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mingwMain/kotlin/moe/yuuta/aero/Aero.kt b/src/mingwMain/kotlin/moe/yuuta/aero/Aero.kt index c1f76de..f1040ff 100644 --- a/src/mingwMain/kotlin/moe/yuuta/aero/Aero.kt +++ b/src/mingwMain/kotlin/moe/yuuta/aero/Aero.kt @@ -44,6 +44,12 @@ fun main() { } if (hwnd == null || (forceDialogEnv == "true")) { + if (hwnd == null) { + MessageBoxA(null, + "The system returns an empty dialog (${GetLastError()})", + "Aero", + (MB_OK or MB_ICONERROR).convert()) + } memScoped { // Fallback val dlgImpl = cValue<DLGTEMPLATE> { |