Module: wine Branch: master Commit: 9d09e699d6614a5e3fbb565aaa78d86667e46f8c URL: http://source.winehq.org/git/wine.git/?a=commit;h=9d09e699d6614a5e3fbb565aaa...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jan 18 15:18:12 2007 +0100
ntdll: Get rid of the no longer used is_current_process function.
---
dlls/ntdll/ntdll_misc.h | 2 -- dlls/ntdll/virtual.c | 21 --------------------- 2 files changed, 0 insertions(+), 23 deletions(-)
diff --git a/dlls/ntdll/ntdll_misc.h b/dlls/ntdll/ntdll_misc.h index 4a8c474..443b281 100644 --- a/dlls/ntdll/ntdll_misc.h +++ b/dlls/ntdll/ntdll_misc.h @@ -120,8 +120,6 @@ extern NTSTATUS VIRTUAL_HandleFault(LPCV extern void VIRTUAL_SetForceExec( BOOL enable ); extern void VIRTUAL_UseLargeAddressSpace(void);
-extern BOOL is_current_process( HANDLE handle ); - /* code pages */ extern int ntdll_umbstowcs(DWORD flags, const char* src, int srclen, WCHAR* dst, int dstlen); extern int ntdll_wcstoumbs(DWORD flags, const WCHAR* src, int srclen, char* dst, int dstlen, diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c index 0ac8bdc..f2dd299 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -1212,27 +1212,6 @@ static NTSTATUS map_image( HANDLE hmappi
/*********************************************************************** - * is_current_process - * - * Check whether a process handle is for the current process. - */ -BOOL is_current_process( HANDLE handle ) -{ - BOOL ret = FALSE; - - if (handle == NtCurrentProcess()) return TRUE; - SERVER_START_REQ( get_process_info ) - { - req->handle = handle; - if (!wine_server_call( req )) - ret = ((DWORD)reply->pid == GetCurrentProcessId()); - } - SERVER_END_REQ; - return ret; -} - - -/*********************************************************************** * virtual_init */ void virtual_init(void)