ntdll: Get rid of the no longer used is_current_process function.
This commit is contained in:
parent
02e2fa7798
commit
9d09e699d6
@ -120,8 +120,6 @@ extern NTSTATUS VIRTUAL_HandleFault(LPCVOID addr);
|
|||||||
extern void VIRTUAL_SetForceExec( BOOL enable );
|
extern void VIRTUAL_SetForceExec( BOOL enable );
|
||||||
extern void VIRTUAL_UseLargeAddressSpace(void);
|
extern void VIRTUAL_UseLargeAddressSpace(void);
|
||||||
|
|
||||||
extern BOOL is_current_process( HANDLE handle );
|
|
||||||
|
|
||||||
/* code pages */
|
/* code pages */
|
||||||
extern int ntdll_umbstowcs(DWORD flags, const char* src, int srclen, WCHAR* dst, int dstlen);
|
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,
|
extern int ntdll_wcstoumbs(DWORD flags, const WCHAR* src, int srclen, char* dst, int dstlen,
|
||||||
|
@ -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
|
* virtual_init
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user