bug 551882 - Windows Mobile should use the the WINAPI process model r=bsmedberg
authorBrad Lassey <blassey@mozilla.com>
Fri, 12 Mar 2010 20:56:06 -0500
changeset 39379 a4e664653f8c49523c3366d59327b7728ff721fb
parent 39378 db88a703350f4cbc324353a0556f6a73b8f2d6fe
child 39380 eaa7cd37329fc3231779561e63bca525a6627c86
push idunknown
push userunknown
push dateunknown
reviewersbsmedberg
bugs551882
milestone1.9.3a3pre
bug 551882 - Windows Mobile should use the the WINAPI process model r=bsmedberg
xpcom/threads/nsProcess.h
xpcom/threads/nsProcessCommon.cpp
--- a/xpcom/threads/nsProcess.h
+++ b/xpcom/threads/nsProcess.h
@@ -35,17 +35,17 @@
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
 #ifndef _nsPROCESSWIN_H_
 #define _nsPROCESSWIN_H_
 
-#if defined(XP_WIN) && !defined (WINCE) /* wince uses nspr */
+#if defined(XP_WIN)
 #define PROCESSMODEL_WINAPI
 #endif
 
 #include "nsIProcess.h"
 #include "nsIFile.h"
 #include "nsIThread.h"
 #include "nsIObserver.h"
 #include "nsIWeakReference.h"
--- a/xpcom/threads/nsProcessCommon.cpp
+++ b/xpcom/threads/nsProcessCommon.cpp
@@ -67,16 +67,20 @@
 #else
 #include <sys/types.h>
 #include <signal.h>
 #endif
 
 #ifdef WINCE
 #include <windows.h> // for MultiByteToWideChar
 #include "prmem.h"
+#define SHELLEXECUTEINFOW SHELLEXECUTEINFO
+#define SEE_MASK_FLAG_DDEWAIT 0
+#define SEE_MASK_NO_CONSOLE 0
+#define ShellExecuteExW ShellExecuteEx
 #endif
 
 //-------------------------------------------------------------------//
 // nsIProcess implementation
 //-------------------------------------------------------------------//
 NS_IMPL_THREADSAFE_ISUPPORTS2(nsProcess, nsIProcess,
                                          nsIObserver)