Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

C28108

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.

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);
Show:
© 2015 Microsoft