aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuutaW <17158086+Trumeet@users.noreply.github.com>2019-06-30 18:21:34 -0700
committerTrumeet <17158086+Trumeet@users.noreply.github.com>2019-06-30 18:21:34 -0700
commit9f5c437a12b90088e61bd88f91b4430dab036a7c (patch)
tree796deb539fc59fe575f88db8de8360e650b56db2
parenta71c1962222419bcc66eaa256c0e4ce7546097c6 (diff)
downloadAero-9f5c437a12b90088e61bd88f91b4430dab036a7c.tar
Aero-9f5c437a12b90088e61bd88f91b4430dab036a7c.tar.gz
Aero-9f5c437a12b90088e61bd88f91b4430dab036a7c.tar.bz2
Aero-9f5c437a12b90088e61bd88f91b4430dab036a7c.zip
feat: add an error notification if the window was failed in creatinguntagged-e5584d5582b37ccd68fc
Signed-off-by: Trumeet <17158086+Trumeet@users.noreply.github.com>
-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> {