Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PCHAR
- DbgDevicePowerString(IN WDF_POWER_DEVICE_STATE Type)
- {
- ....
- case WdfPowerDeviceD0:
- return "WdfPowerDeviceD0";
- case PowerDeviceD1:
- return "WdfPowerDeviceD1";
- case WdfPowerDeviceD2:
- return "WdfPowerDeviceD2";
- ....
- }
- Most likely this is what should be written here: case WdfPowerDeviceD1:
- This suspicious code was found in DDKSamples project by PVS-Studio static code analyzer.
- Warning message is:
- V556 The values of different enum types are compared: switch(ENUM_TYPE_A) { case ENUM_TYPE_B: ... }. usb.c 450
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment