Commit 9d09e699 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 02e2fa77
......@@ -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,
......
......@@ -1212,27 +1212,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
*/
void virtual_init(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment