Skip to content

Commit

Permalink
minidriver.c - GetContainerInfo return caller's dwVersion
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dengert committed Nov 25, 2024
1 parent 7f7e7d7 commit b0d178d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/minidriver/minidriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b0d178d

Please sign in to comment.