mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:26:00 +00:00
[REACTOS] Fix misc 64 bit issues (#783)
* [WIN32K] Fix handle calculation in DbgGdiHTIntegrityCheck * [NOTEPAD] Fix MSVC warnings * [PSDK] Simplify *PROC definitions in windef.h * [VIDEOPRT] Don't try to use NtVdmControl on x64 * [FREELDR] Fix some macros * [CRT] Make qsort 64 bit compatible * [NTOS] Use #ifndef _WIN64 instead of #ifdef _M_IX86 around C_ASSERTs * [FAST486] Fix 64 bit warnings and change DWORD to ULONG, so it can be used in kernel mode * [APPHELP_APITEST] Fix 64 bit issue
This commit is contained in:
parent
d67156fa98
commit
cfd1647914
16 changed files with 54 additions and 42 deletions
|
@ -40,7 +40,9 @@ IntInitializeVideoAddressSpace(VOID)
|
|||
PVOID BaseAddress;
|
||||
LARGE_INTEGER Offset;
|
||||
SIZE_T ViewSize;
|
||||
#ifdef _M_IX86
|
||||
CHAR IVTAndBda[1024+256];
|
||||
#endif // _M_IX86
|
||||
|
||||
/* Free the 1MB pre-reserved region. In reality, ReactOS should simply support us mapping the view into the reserved area, but it doesn't. */
|
||||
BaseAddress = 0;
|
||||
|
@ -124,6 +126,7 @@ IntInitializeVideoAddressSpace(VOID)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef _M_IX86
|
||||
/* Get the real mode IVT and BDA from the kernel */
|
||||
Status = NtVdmControl(VdmInitialize, IVTAndBda);
|
||||
if (!NT_SUCCESS(Status))
|
||||
|
@ -131,6 +134,7 @@ IntInitializeVideoAddressSpace(VOID)
|
|||
DPRINT1("NtVdmControl failed (status %x)\n", Status);
|
||||
return Status;
|
||||
}
|
||||
#endif // _M_IX86
|
||||
|
||||
/* Return success */
|
||||
return STATUS_SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue