[PATCH v3 0/1] MR1771: ntoskrnl.exe: Fake Success for MmMapIoSpace.
originally created by Guy1524 -- v3: ntoskrnl.exe: Fake Success for MmMapIoSpace. https://gitlab.winehq.org/wine/wine/-/merge_requests/1771
From: Etaash Mathamsetty <etaash.mathamsetty(a)gmail.com> --- dlls/ntoskrnl.exe/ntoskrnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index ce92f6805ab..9f158d514c0 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -2876,7 +2876,7 @@ PHYSICAL_ADDRESS WINAPI MmGetPhysicalAddress(void *virtual_address) PVOID WINAPI MmMapIoSpace( PHYSICAL_ADDRESS PhysicalAddress, DWORD NumberOfBytes, DWORD CacheType ) { FIXME( "stub: 0x%08lx%08lx, %ld, %ld\n", PhysicalAddress.u.HighPart, PhysicalAddress.u.LowPart, NumberOfBytes, CacheType ); - return NULL; + return (PVOID)(ULONG_PTR)(PhysicalAddress.QuadPart); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1771
v2: cast to ULONG_PTR and then cast to a PVOID to hopefully fix issues with 32 bit compilation -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1771#note_19416
participants (2)
-
Etaash Mathamsetty -
Etaash Mathamsetty (@etaash.mathamsetty)