ntdll: Get rid of the no longer used is_current_process function.

This commit is contained in:
Alexandre Julliard 2007-01-18 15:18:12 +01:00
parent 02e2fa7798
commit 9d09e699d6
2 changed files with 0 additions and 23 deletions

View File

@ -120,8 +120,6 @@ extern NTSTATUS VIRTUAL_HandleFault(LPCVOID addr);
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,

View File

@ -1211,27 +1211,6 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
}
/***********************************************************************
* 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
*/