Commit 5605db6b authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

krnl386.exe16: Use BOOL type where appropriate.

parent b160c733
...@@ -702,7 +702,7 @@ FARPROC16 DPMI_AllocInternalRMCB( RMCBPROC proc ) ...@@ -702,7 +702,7 @@ FARPROC16 DPMI_AllocInternalRMCB( RMCBPROC proc )
} }
static int DPMI_FreeRMCB( DWORD address ) static BOOL DPMI_FreeRMCB( DWORD address )
{ {
RMCB *CurrRMCB = FirstRMCB; RMCB *CurrRMCB = FirstRMCB;
RMCB *PrevRMCB = NULL; RMCB *PrevRMCB = NULL;
...@@ -720,9 +720,9 @@ static int DPMI_FreeRMCB( DWORD address ) ...@@ -720,9 +720,9 @@ static int DPMI_FreeRMCB( DWORD address )
FirstRMCB = CurrRMCB->next; FirstRMCB = CurrRMCB->next;
DOSMEM_FreeBlock(PTR_REAL_TO_LIN(SELECTOROF(CurrRMCB->address),OFFSETOF(CurrRMCB->address))); DOSMEM_FreeBlock(PTR_REAL_TO_LIN(SELECTOROF(CurrRMCB->address),OFFSETOF(CurrRMCB->address)));
HeapFree(GetProcessHeap(), 0, CurrRMCB); HeapFree(GetProcessHeap(), 0, CurrRMCB);
return 0; return TRUE;
} }
return 1; return FALSE;
} }
...@@ -823,7 +823,7 @@ static void DOSVM_FreeRMCB( CONTEXT *context ) ...@@ -823,7 +823,7 @@ static void DOSVM_FreeRMCB( CONTEXT *context )
FIXME("callback address: %04x:%04x\n", FIXME("callback address: %04x:%04x\n",
CX_reg(context), DX_reg(context)); CX_reg(context), DX_reg(context));
if (DPMI_FreeRMCB(MAKELONG(DX_reg(context), CX_reg(context)))) { if (!DPMI_FreeRMCB(MAKELONG(DX_reg(context), CX_reg(context)))) {
SET_AX( context, 0x8024 ); /* invalid callback address */ SET_AX( context, 0x8024 ); /* invalid callback address */
SET_CFLAG(context); SET_CFLAG(context);
} }
......
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