mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
fixed a device status check
svn path=/trunk/; revision=19820
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user