Author: gert
Date: 2007-12-04 08:22:23 -0500 (Tue, 04 Dec 2007)
New Revision: 90669

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/process.c
Log:
* process.c: When ProcessStartInfo.ErrorDialog is true, pass window
handle to use when error dialog is shown; otherwise, update mask
to show no error dialog when an error occurs.


Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2007-12-04 13:20:09 UTC (rev 90668)
+++ trunk/mono/mono/metadata/ChangeLog  2007-12-04 13:22:23 UTC (rev 90669)
@@ -1,3 +1,9 @@
+2007-12-04  Gert Driesen  <[EMAIL PROTECTED]>
+
+       * process.c: When ProcessStartInfo.ErrorDialog is true, pass window
+       handle to use when error dialog is shown; otherwise, update mask
+       to show no error dialog when an error occurs.
+
 2007-12-03  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * icall.c (ves_icall_MonoField_GetRawConstantValue): New icall.

Modified: trunk/mono/mono/metadata/process.c
===================================================================
--- trunk/mono/mono/metadata/process.c  2007-12-04 13:20:09 UTC (rev 90668)
+++ trunk/mono/mono/metadata/process.c  2007-12-04 13:22:23 UTC (rev 90669)
@@ -561,7 +561,9 @@
        shellex.cbSize = sizeof(SHELLEXECUTEINFO);
        shellex.fMask = SEE_MASK_FLAG_DDEWAIT | SEE_MASK_NOCLOSEPROCESS | 
SEE_MASK_UNICODE;
        shellex.nShow = SW_SHOWNORMAL;
+
        
+       
        if (proc_start_info->filename != NULL) {
                shellex.lpFile = mono_string_chars (proc_start_info->filename);
        }
@@ -580,6 +582,12 @@
                shellex.lpDirectory = mono_string_chars 
(proc_start_info->working_directory);
        }
 
+       if (proc_start_info->error_dialog) {    
+               shellex.hwnd = proc_start_info->error_dialog_parent_handle;
+       } else {
+               shellex.fMask |= SEE_MASK_FLAG_NO_UI;
+       }
+
        ret = ShellExecuteEx (&shellex);
        if (ret == FALSE) {
                process_info->pid = -GetLastError ();

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to