Warning C28108
Variable holds an unexpected resource
The resource that the driver is using is in the expected C language type, but has a different semantic type.
Example
The following code example generates this warning:
KeAcquireInStackSpinLock(spinLock, lockHandle);
//...
KeReleaseSpinLock(spinLock, 0);
The following code example avoids this warning:
KeAcquireInStackSpinLock(spinLock, lockHandle);
//...
KeReleaseInStackSpinLock(lockHandle);
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for