Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
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);