DBKKernel IOPLDispatcher filter warning C4305 #2444
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When I used vs2019 to build "DBKKernel x86", an error was raised
`1>DBKKernel\IOPLDispatcher.c(2183,68): error C2220: The following warning is considered an error
1>DBKKernel\IOPLDispatcher.c(2183,68): warning C4305: truncation from: From"UINT64”to“void *"
1>DBKKernel\IOPLDispatcher.c(2183,105): warning C4305: truncation from: From"UINT64”to“void *"
This is because the type of "vmx_password1" and "vmx_password3" is UINT64, but the type of "void*" only occupy 4 bytes under x86.
vmx_password1=pinp->Password1; vmx_password2=pinp->Password2; vmx_password3=pinp->Password3; DbgPrint("new passwords are: %p-%x-%p\n", (void*)vmx_password1, vmx_password2, (void*)vmx_password3);