From 11ef172c79c73e3af7a55760483a9ea84ddb3775 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 1 Sep 2022 16:36:24 +0200 Subject: [PATCH] [util] Add stubs for DuplicateHandle and GetCurrentProcess --- src/util/util_win32_compat.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/util/util_win32_compat.h b/src/util/util_win32_compat.h index cc05b1b16..74ea6ecea 100644 --- a/src/util/util_win32_compat.h +++ b/src/util/util_win32_compat.h @@ -45,11 +45,28 @@ inline BOOL SetEvent(HANDLE hEvent) { return FALSE; } +inline BOOL DuplicateHandle( + HANDLE hSourceProcessHandle, + HANDLE hSourceHandle, + HANDLE hTargetProcessHandle, + HANDLE* lpTargetHandle, + DWORD dwDesiredAccess, + BOOL bInheritHandle, + DWORD dwOptions) { + dxvk::Logger::warn("DuplicateHandle not implemented."); + return FALSE; +} + inline BOOL CloseHandle(HANDLE hObject) { dxvk::Logger::warn("CloseHandle not implemented."); return FALSE; } +inline HANDLE GetCurrentProcess() { + dxvk::Logger::warn("GetCurrentProcess not implemented."); + return nullptr; +} + inline HDC CreateCompatibleDC(HDC hdc) { dxvk::Logger::warn("CreateCompatibleDC not implemented."); return nullptr;