aboutsummaryrefslogtreecommitdiff
path: root/src/mingwMain/kotlin/moe/yuuta/aero/Aero.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/mingwMain/kotlin/moe/yuuta/aero/Aero.kt')
-rw-r--r--src/mingwMain/kotlin/moe/yuuta/aero/Aero.kt6
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> {