mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +00:00
[GDI32] Fix wrong ordering of parameters in NtGdiDdGetDC call (#3637)
It allows to properly pass the surface handle (and palette entry pointer) from MS ddraw into win32k. Otherwise, they are passing into the wrong parameters of actual NtGdi* function, and due to this, since they're detected as invalid, they become NULL, and that function does not work correctly. See https://docs.microsoft.com/en-us/windows/win32/devnotes/-dxgkernel-ntgdiddgetdc for the reference (and confirmed by our headers). Required by MS DirectDraw stack (ddraw.dll & dxg.sys). CORE-17561
This commit is contained in:
parent
11a60cebea
commit
58daf942fe
|
@ -1924,7 +1924,7 @@ DdGetDC(LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal,
|
|||
LPPALETTEENTRY pColorTable)
|
||||
{
|
||||
/* Call win32k directly */
|
||||
return NtGdiDdGetDC(pColorTable, (HANDLE) pSurfaceLocal->hDDSurface);
|
||||
return NtGdiDdGetDC((HANDLE)pSurfaceLocal->hDDSurface, pColorTable);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -2082,4 +2082,3 @@ DdSetGammaRamp(LPDDRAWI_DIRECTDRAW_LCL pDDraw,
|
|||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue