Make VIRTUAL_HandleFault return an NTSTATUS.
This commit is contained in:
parent
28f15a3bdf
commit
40dd77bf5a
|
@ -89,7 +89,7 @@ extern NTSTATUS FILE_GetNtStatus(void);
|
||||||
extern BOOL DIR_is_hidden_file( const UNICODE_STRING *name );
|
extern BOOL DIR_is_hidden_file( const UNICODE_STRING *name );
|
||||||
|
|
||||||
/* virtual memory */
|
/* virtual memory */
|
||||||
extern DWORD VIRTUAL_HandleFault(LPCVOID addr);
|
extern NTSTATUS VIRTUAL_HandleFault(LPCVOID addr);
|
||||||
extern BOOL VIRTUAL_HasMapping( LPCVOID addr );
|
extern BOOL VIRTUAL_HasMapping( LPCVOID addr );
|
||||||
extern void VIRTUAL_UseLargeAddressSpace(void);
|
extern void VIRTUAL_UseLargeAddressSpace(void);
|
||||||
|
|
||||||
|
|
|
@ -1097,10 +1097,10 @@ void virtual_init(void)
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* VIRTUAL_HandleFault
|
* VIRTUAL_HandleFault
|
||||||
*/
|
*/
|
||||||
DWORD VIRTUAL_HandleFault( LPCVOID addr )
|
NTSTATUS VIRTUAL_HandleFault( LPCVOID addr )
|
||||||
{
|
{
|
||||||
FILE_VIEW *view;
|
FILE_VIEW *view;
|
||||||
DWORD ret = EXCEPTION_ACCESS_VIOLATION;
|
NTSTATUS ret = STATUS_ACCESS_VIOLATION;
|
||||||
|
|
||||||
RtlEnterCriticalSection( &csVirtual );
|
RtlEnterCriticalSection( &csVirtual );
|
||||||
if ((view = VIRTUAL_FindView( addr )))
|
if ((view = VIRTUAL_FindView( addr )))
|
||||||
|
|
Loading…
Reference in New Issue