2019-06-06 15:38:50 -07:00
|
|
|
From a119d47ffc9e59747c435488002ee3eaecbc515f Mon Sep 17 00:00:00 2001
|
2019-04-25 20:36:39 -07:00
|
|
|
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
|
|
|
Date: Tue, 23 Apr 2019 13:32:56 +1000
|
2019-06-06 15:38:50 -07:00
|
|
|
Subject: [PATCH] gdi32: Add D3DKMTQueryStatistics stub
|
2019-04-25 20:36:39 -07:00
|
|
|
|
|
|
|
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47074
|
|
|
|
---
|
2019-06-06 15:38:50 -07:00
|
|
|
dlls/gdi32/driver.c | 10 ++++++++++
|
|
|
|
dlls/gdi32/gdi32.spec | 1 +
|
|
|
|
include/ddk/d3dkmthk.h | 1 +
|
|
|
|
3 files changed, 12 insertions(+)
|
2019-04-25 20:36:39 -07:00
|
|
|
|
|
|
|
diff --git a/dlls/gdi32/driver.c b/dlls/gdi32/driver.c
|
2019-06-06 15:38:50 -07:00
|
|
|
index 96c2f1f1299..53914a88e5f 100644
|
2019-04-25 20:36:39 -07:00
|
|
|
--- a/dlls/gdi32/driver.c
|
|
|
|
+++ b/dlls/gdi32/driver.c
|
2019-06-06 15:38:50 -07:00
|
|
|
@@ -1423,3 +1423,13 @@ NTSTATUS WINAPI D3DKMTDestroyDevice( const D3DKMT_DESTROYDEVICE *desc )
|
|
|
|
|
|
|
|
return status;
|
2019-04-25 20:36:39 -07:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+/******************************************************************************
|
2019-04-28 18:00:50 -07:00
|
|
|
+ * D3DKMTQueryStatistics [GDI32.@]
|
2019-04-25 20:36:39 -07:00
|
|
|
+ */
|
|
|
|
+NTSTATUS WINAPI D3DKMTQueryStatistics(D3DKMT_QUERYSTATISTICS *stats)
|
|
|
|
+{
|
|
|
|
+ FIXME("(%p): stub\n", stats);
|
|
|
|
+ return STATUS_SUCCESS;
|
|
|
|
+}
|
2019-06-06 15:38:50 -07:00
|
|
|
+
|
2019-04-25 20:36:39 -07:00
|
|
|
diff --git a/dlls/gdi32/gdi32.spec b/dlls/gdi32/gdi32.spec
|
2019-06-06 15:38:50 -07:00
|
|
|
index 9abd82173c8..cc5d2c21a31 100644
|
2019-04-25 20:36:39 -07:00
|
|
|
--- a/dlls/gdi32/gdi32.spec
|
|
|
|
+++ b/dlls/gdi32/gdi32.spec
|
2019-06-06 15:38:50 -07:00
|
|
|
@@ -88,6 +88,7 @@
|
2019-04-25 20:36:39 -07:00
|
|
|
@ stdcall D3DKMTEscape(ptr)
|
2019-06-06 15:38:50 -07:00
|
|
|
@ stdcall D3DKMTOpenAdapterFromGdiDisplayName(ptr)
|
2019-04-25 20:36:39 -07:00
|
|
|
@ stdcall D3DKMTOpenAdapterFromHdc(ptr)
|
|
|
|
+@ stdcall D3DKMTQueryStatistics(ptr)
|
|
|
|
@ stdcall DPtoLP(long ptr long)
|
|
|
|
@ stdcall DeleteColorSpace(long)
|
|
|
|
@ stdcall DeleteDC(long)
|
|
|
|
diff --git a/include/ddk/d3dkmthk.h b/include/ddk/d3dkmthk.h
|
2019-06-06 15:38:50 -07:00
|
|
|
index 8e28c94bbf8..ea4df3a9e01 100644
|
2019-04-25 20:36:39 -07:00
|
|
|
--- a/include/ddk/d3dkmthk.h
|
|
|
|
+++ b/include/ddk/d3dkmthk.h
|
2019-06-06 15:38:50 -07:00
|
|
|
@@ -608,6 +608,7 @@ NTSTATUS WINAPI D3DKMTCreateDCFromMemory(D3DKMT_CREATEDCFROMMEMORY *desc);
|
2019-04-25 20:36:39 -07:00
|
|
|
NTSTATUS WINAPI D3DKMTDestroyDCFromMemory(const D3DKMT_DESTROYDCFROMMEMORY *desc);
|
2019-06-06 15:38:50 -07:00
|
|
|
NTSTATUS WINAPI D3DKMTDestroyDevice(const D3DKMT_DESTROYDEVICE *desc);
|
|
|
|
NTSTATUS WINAPI D3DKMTOpenAdapterFromGdiDisplayName(D3DKMT_OPENADAPTERFROMGDIDISPLAYNAME *desc);
|
2019-04-25 20:36:39 -07:00
|
|
|
+NTSTATUS WINAPI D3DKMTQueryStatistics(D3DKMT_QUERYSTATISTICS *stats);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
--
|
2019-06-06 15:38:50 -07:00
|
|
|
2.17.1
|
2019-04-25 20:36:39 -07:00
|
|
|
|