From e5fa60d4cdfa4e720d022ec204c6b9af84c2eeb2 Mon Sep 17 00:00:00 2001 From: "dougt%meer.net" Date: Wed, 20 Apr 2005 23:06:46 +0000 Subject: [PATCH] Defaulting SetCurrentDirectory to ASCII. Windows CE only. NOT PART OF DEFAULT BUILD git-svn-id: svn://10.0.0.236/trunk@172522 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/build/wince/shunt/include/mozce_shunt.h | 13 ++++++++++++- mozilla/build/wince/shunt/win32.cpp | 11 +++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/mozilla/build/wince/shunt/include/mozce_shunt.h b/mozilla/build/wince/shunt/include/mozce_shunt.h index b721b4babf2..75b2030c0ad 100755 --- a/mozilla/build/wince/shunt/include/mozce_shunt.h +++ b/mozilla/build/wince/shunt/include/mozce_shunt.h @@ -423,11 +423,17 @@ #endif #define GetCurrentProcess mozce_GetCurrentProcess +#ifdef GetCurrentProcessId +#undef GetCurrentProcessId +#endif +#define GetCurrentProcessId mozce_GetCurrentProcessId + #ifdef GetCurrentThreadId #undef GetCurrentThreadId #endif #define GetCurrentThreadId mozce_GetCurrentThreadId + #ifdef GetDIBits #undef GetDIBits #endif @@ -644,7 +650,6 @@ #define _OleSetClipboard mozce_OleSetClipboard - // From win32a.cpp #ifdef CopyFileA @@ -992,6 +997,11 @@ #endif #define SetCurrentDirectoryA mozce_SetCurrentDirectoryA +#ifdef SetCurrentDirectory +#undef SetCurrentDirectory +#endif +#define SetCurrentDirectory mozce_SetCurrentDirectoryA + #ifdef SetDlgItemTextA #undef SetDlgItemTextA #endif @@ -1271,6 +1281,7 @@ extern "C" { MOZCE_SHUNT_API UINT mozce_GetACP(void); MOZCE_SHUNT_API HANDLE mozce_GetCurrentProcess(void); + MOZCE_SHUNT_API HANDLE mozce_GetCurrentProcessId(void); MOZCE_SHUNT_API DWORD mozce_TlsAlloc(void); MOZCE_SHUNT_API BOOL mozce_TlsFree(DWORD dwTlsIndex); MOZCE_SHUNT_API DWORD GetCurrentThreadId(void); diff --git a/mozilla/build/wince/shunt/win32.cpp b/mozilla/build/wince/shunt/win32.cpp index 84262dae540..7308a90c856 100755 --- a/mozilla/build/wince/shunt/win32.cpp +++ b/mozilla/build/wince/shunt/win32.cpp @@ -1032,6 +1032,17 @@ MOZCE_SHUNT_API DWORD mozce_GetCurrentThreadId(void) return GetCurrentThreadId(); } + +MOZCE_SHUNT_API DWORD mozce_GetCurrentProcessId(void) +{ + MOZCE_PRECHECK + +#ifdef DEBUG + mozce_printf("mozce_GetCurrentProcessId called\n"); +#endif + return GetCurrentProcessId(); +} + MOZCE_SHUNT_API DWORD mozce_TlsAlloc(void) { MOZCE_PRECHECK