summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Rozenfeld <vrozenfe@redhat.com>2014-08-24 20:02:56 +1000
committerVadim Rozenfeld <vrozenfe@redhat.com>2014-08-24 20:02:56 +1000
commit8ffc5298ad7226f1e239df18a26644956e8a0ec5 (patch)
treef319b31b22d4f94650957ebaa7412bab8e8221c7
parent400f7ad7c5c75e98966c53b5d6b21c97360c5c63 (diff)
fix compatebility issue
-rwxr-xr-xqxldod/QxlDod.cpp6
-rwxr-xr-xqxldod/driver.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index 90c4b77..0514643 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -383,15 +383,15 @@ NTSTATUS QxlDod::QueryAdapterInfo(_In_ CONST DXGKARG_QUERYADAPTERINFO* pQueryAda
{
case DXGKQAITYPE_DRIVERCAPS:
{
- if (pQueryAdapterInfo->OutputDataSize < sizeof(DXGK_DRIVERCAPS))
+ if (!pQueryAdapterInfo->OutputDataSize/* < sizeof(DXGK_DRIVERCAPS)*/)
{
- DbgPrint(TRACE_LEVEL_ERROR, ("pQueryAdapterInfo->OutputDataSize (0x%I64x) is smaller than sizeof(DXGK_DRIVERCAPS) (0x%I64x)", pQueryAdapterInfo->OutputDataSize, sizeof(DXGK_DRIVERCAPS)));
+ DbgPrint(TRACE_LEVEL_ERROR, ("pQueryAdapterInfo->OutputDataSize (0x%u) is smaller than sizeof(DXGK_DRIVERCAPS) (0x%u)\n", pQueryAdapterInfo->OutputDataSize, sizeof(DXGK_DRIVERCAPS)));
return STATUS_BUFFER_TOO_SMALL;
}
DXGK_DRIVERCAPS* pDriverCaps = (DXGK_DRIVERCAPS*)pQueryAdapterInfo->pOutputData;
- RtlZeroMemory(pDriverCaps, sizeof(DXGK_DRIVERCAPS));
+ RtlZeroMemory(pDriverCaps, pQueryAdapterInfo->OutputDataSize/*sizeof(DXGK_DRIVERCAPS)*/);
pDriverCaps->WDDMVersion = DXGKDDI_WDDMv1_2;
pDriverCaps->HighestAcceptableAddress.QuadPart = -1;
diff --git a/qxldod/driver.cpp b/qxldod/driver.cpp
index 59222de..e8f48f2 100755
--- a/qxldod/driver.cpp
+++ b/qxldod/driver.cpp
@@ -28,7 +28,7 @@ DriverEntry(
// Initialize DDI function pointers and dxgkrnl
KMDDOD_INITIALIZATION_DATA InitialData = {0};
- InitialData.Version = DXGKDDI_INTERFACE_VERSION_WIN8;
+ InitialData.Version = DXGKDDI_INTERFACE_VERSION;
InitialData.DxgkDdiAddDevice = DodAddDevice;
InitialData.DxgkDdiStartDevice = DodStartDevice;