From b0d178dc55f6de885c5c3fa13af1f6094c505b5a Mon Sep 17 00:00:00 2001 From: Doug Engert Date: Mon, 25 Nov 2024 07:26:32 -0600 Subject: [PATCH] minidriver.c - GetContainerInfo return caller's dwVersion 7.06 says: The dwVersion member must be set by the caller. pContainerInfo->dwVersion On branch Minidriver-2 Changes to be committed: modified: minidriver.c --- src/minidriver/minidriver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/minidriver/minidriver.c b/src/minidriver/minidriver.c index 9bf91b7067..ff9198a6af 100644 --- a/src/minidriver/minidriver.c +++ b/src/minidriver/minidriver.c @@ -3602,8 +3602,9 @@ DWORD WINAPI CardGetContainerInfo(__in PCARD_DATA pCardData, __in BYTE bContaine ret = ERROR_REVISION_MISMATCH; goto err; } - - pContainerInfo->dwVersion = CONTAINER_INFO_CURRENT_VERSION; + /* 7.06 says: The dwVersion member must be set by the caller. */ + if (md_get_config_bool(pCardData, "md_container dont_change_dwversion", FALSE) == TRUE) + pContainerInfo->dwVersion = CONTAINER_INFO_CURRENT_VERSION; vs = (VENDOR_SPECIFIC*)(pCardData->pvVendorSpecific); if (!vs) {