Commit 40dd77bf authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Make VIRTUAL_HandleFault return an NTSTATUS.

parent 28f15a3b
...@@ -89,7 +89,7 @@ extern NTSTATUS FILE_GetNtStatus(void); ...@@ -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) ...@@ -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 )))
......
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