fixed a device status check

svn path=/trunk/; revision=19820
This commit is contained in:
Thomas Bluemel
2005-12-01 23:14:30 +00:00
parent c9ff6fb121
commit 6fd3ec8ecb
+3 -3
View File
@@ -452,12 +452,12 @@ GetDeviceStatusString(IN DEVINST DevInst,
szBuffer[0] = L'\0';
if (ProblemNumber == 0)
{
if (!(Status & DN_DRIVER_LOADED))
if (!(Status & (DN_DRIVER_LOADED | DN_STARTED)))
{
MessageId = IDS_NODRIVERLOADED;
}
goto UnknownProblem;
goto GeneralProblem;
}
else
{
@@ -487,7 +487,7 @@ GetDeviceStatusString(IN DEVINST DevInst,
}
else
{
UnknownProblem:
GeneralProblem:
if (LoadString(hDllInstance,
MessageId,
szBuffer,