@@ -60,7 +60,7 @@ static void generic_lua_error_handler(error e, char const *const default_msg) {
60
60
msg = default_msg ;
61
61
cleanup :
62
62
if (msg ) {
63
- gcmz_error_message_box (e , aviutl_get_exedit_window_must (), true, gettext ("Error" ), NULL , "%1$s" , msg );
63
+ gcmz_error_message_box (e , aviutl_get_exedit_window_must (), MB_ICONERROR , true, gettext ("Error" ), NULL , "%1$s" , msg );
64
64
}
65
65
files_cleanup (true);
66
66
}
@@ -674,6 +674,7 @@ static void request_callback(struct api_request_params *const params, api_reques
674
674
if (efailed (err )) {
675
675
gcmz_error_message_box (err ,
676
676
(HWND )params -> userdata ,
677
+ MB_ICONERROR ,
677
678
false,
678
679
gettext ("Error" ),
679
680
NULL ,
@@ -717,7 +718,7 @@ static BOOL wndproc_init(HWND const window) {
717
718
efree (& err );
718
719
}
719
720
gui_lock ();
720
- gcmz_error_message_box (err , window , false, title , NULL , msg ? "%1$s\n\n%2$s" : "%1$s" , msg_head , msg );
721
+ gcmz_error_message_box (err , window , MB_ICONERROR , false, title , NULL , msg ? "%1$s\n\n%2$s" : "%1$s" , msg_head , msg );
721
722
return FALSE;
722
723
}
723
724
@@ -734,8 +735,15 @@ static BOOL wndproc_init(HWND const window) {
734
735
err = drop_target_new (& dt );
735
736
if (efailed (err )) {
736
737
gui_lock ();
737
- gcmz_error_message_box (
738
- err , window , false, title , L"%1$s%2$s" , "%1$s\n\n%2$s" , msg_head , gettext ("Failed to create IDropTarget." ));
738
+ gcmz_error_message_box (err ,
739
+ window ,
740
+ MB_ICONERROR ,
741
+ false,
742
+ title ,
743
+ L"%1$s%2$s" ,
744
+ "%1$s\n\n%2$s" ,
745
+ msg_head ,
746
+ gettext ("Failed to create IDropTarget." ));
739
747
return FALSE;
740
748
}
741
749
dt -> super .lpVtbl -> AddRef ((void * )dt );
@@ -759,7 +767,7 @@ static BOOL wndproc_init(HWND const window) {
759
767
efree (& err );
760
768
}
761
769
gui_lock ();
762
- gcmz_error_message_box (err , window , false, title , NULL , msg ? "%1$s\n\n%2$s" : "%1$s" , msg_head , msg );
770
+ gcmz_error_message_box (err , window , MB_ICONERROR , false, title , NULL , msg ? "%1$s\n\n%2$s" : "%1$s" , msg_head , msg );
763
771
return FALSE;
764
772
}
765
773
g_drop_target_registered = SUCCEEDED (hr );
@@ -768,6 +776,7 @@ static BOOL wndproc_init(HWND const window) {
768
776
if (efailed (err )) {
769
777
gcmz_error_message_box (err ,
770
778
window ,
779
+ MB_ICONWARNING ,
771
780
false,
772
781
title ,
773
782
NULL ,
@@ -782,13 +791,15 @@ static BOOL wndproc_init(HWND const window) {
782
791
if (efailed (err )) {
783
792
char const * apimsg = NULL ;
784
793
if (eis_hr (err , HRESULT_FROM_WIN32 (ERROR_ALREADY_EXISTS ))) {
785
- apimsg = gettext ("This error mainly occurs when multiple instances of AviUtl are running.\n"
786
- "If you need external integration API, please close all instances of AviUtl and start only one instance.\n"
787
- "If you do not need external integration API, you can ignore this message." );
794
+ apimsg = gettext (
795
+ "This error mainly occurs when multiple instances of AviUtl are running.\n"
796
+ "If you need external integration API, please close all instances of AviUtl and start only one instance.\n"
797
+ "If you do not need external integration API, you can ignore this message." );
788
798
efree (& err );
789
799
}
790
800
gcmz_error_message_box (err ,
791
801
window ,
802
+ MB_ICONWARNING ,
792
803
false,
793
804
title ,
794
805
NULL ,
0 commit comments