From 9ff026bd5d1323ad5590adbce8334141ceb5178b Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Sun, 5 Aug 2018 20:21:10 -0300 Subject: [PATCH] Prevents hanging when $EXEICON is used with $CONSOLE:ONLY. Fixes #59. --- internal/c/libqb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/c/libqb.cpp b/internal/c/libqb.cpp index 652295409..d2b397741 100644 --- a/internal/c/libqb.cpp +++ b/internal/c/libqb.cpp @@ -20422,7 +20422,7 @@ void sub_put2(int32 i,int64 offset,void *element,int32 passed){ void sub__icon(int32 handle_icon, int32 handle_window_icon, int32 passed){ if (new_error) return; - + #ifndef DEPENDENCY_CONSOLE_ONLY if (!(passed&2)) handle_window_icon=handle_icon; if (!(passed&1)){ handle_icon=image_qbicon32_handle; @@ -20536,7 +20536,7 @@ void sub_put2(int32 i,int64 offset,void *element,int32 passed){ #endif //QB64_WINDOWS }//!screen_hide - + #endif //DEPENDENCY_CONSOLE_ONLY }//sub__icon #endif //DEPENDENCY_ICON