"warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]"
CORE-14306
ERR("SetupDiGetDriverInfoDetail() failed with error 0x%lx\n", GetLastError());
goto Cleanup;
}
ERR("SetupDiGetDriverInfoDetail() failed with error 0x%lx\n", GetLastError());
goto Cleanup;
}
- if (!_wcsicmp(DriverInfoDetailData.SectionName,
- InfSection) != 0)
+ if (_wcsicmp(DriverInfoDetailData.SectionName, InfSection) == 0)
{
/* We have found the right driver */
Ret = TRUE;
{
/* We have found the right driver */
Ret = TRUE;