From ea8a901f51aa19a68cdaa96b02023496c567caa6 Mon Sep 17 00:00:00 2001 From: love-code-yeyixiao <188240888@qq.com> Date: Sun, 10 Mar 2024 21:31:35 +0800 Subject: [PATCH] try again. --- Sandboxie/core/dll/gdi.c | 7 ++++--- Sandboxie/core/dll/gui_p.h | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sandboxie/core/dll/gdi.c b/Sandboxie/core/dll/gdi.c index 938f7b60..d2dbed7e 100644 --- a/Sandboxie/core/dll/gdi.c +++ b/Sandboxie/core/dll/gdi.c @@ -96,10 +96,11 @@ static BOOL Gdi_ClosePrinter(HANDLE hPrinter); //typedef HDC (*P_CreateDCW)( // void *lpszDriver, void *lpszDevice, void *lpszOutput, void *lpInitData); -typedef HDC(*P_CreateDCA)(LPCSTR pwszDriver, LPCSTR pwszDevice, LPCSTR pszPort, DEVMODEA* pdm); - -typedef HDC(*P_CreateDCW)(LPCWSTR pwszDriver, LPCWSTR pwszDevice, LPCWSTR pszPort, DEVMODEA* pdm); +typedef HDC(*P_CreateDCA)(LPCSTR pwszDriver, LPCSTR pwszDevice, LPCSTR pszPort, const void* pdm); +typedef HDC(*P_CreateDCW)(LPCWSTR pwszDriver, LPCWSTR pwszDevice, LPCWSTR pszPort, const void* pdm); +extern P_CreateDCA __sys_CreateDCA; +extern P_CreateDCW __sys_CreateDCW; typedef ULONG (*P_GdiAddFontResourceW)( const WCHAR *path, ULONG flags, void *reserved); diff --git a/Sandboxie/core/dll/gui_p.h b/Sandboxie/core/dll/gui_p.h index a111e7e4..9af4b9d0 100644 --- a/Sandboxie/core/dll/gui_p.h +++ b/Sandboxie/core/dll/gui_p.h @@ -603,8 +603,7 @@ GUI_SYS_VAR(DeleteDC) GUI_SYS_VAR(BitBlt) GUI_SYS_VAR(StretchBlt) GUI_SYS_VAR(TransparentBlt) -GUI_SYS_VAR(CreateDCA) -GUI_SYS_VAR(CreateDCW) + GUI_SYS_VAR(ClipCursor) GUI_SYS_VAR(GetClipCursor)