mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
[DEVMGR]
- Fix overlay icon for problem devices svn path=/trunk/; revision=69700
This commit is contained in:
@@ -96,17 +96,20 @@ CDeviceNode::SetupNode()
|
||||
}
|
||||
|
||||
|
||||
// Set the overlay if the device has a problem
|
||||
// Check if the device has a problem
|
||||
if (HasProblem())
|
||||
{
|
||||
m_OverlayImage = 1;
|
||||
if (IsDisabled())
|
||||
{
|
||||
m_OverlayImage = OverlayDisabled;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_OverlayImage = OverlayProblem;
|
||||
}
|
||||
}
|
||||
|
||||
// The disabled overlay takes precidence over the problem overlay
|
||||
if (IsDisabled())
|
||||
{
|
||||
m_OverlayImage = 2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Get the class guid for this device
|
||||
@@ -227,7 +230,7 @@ CDeviceNode::IsDisabled()
|
||||
NULL);
|
||||
if (cr == CR_SUCCESS)
|
||||
{
|
||||
return ((m_ProblemNumber & (CM_PROB_DISABLED | CM_PROB_HARDWARE_DISABLED)) != 0);
|
||||
return ((m_ProblemNumber == CM_PROB_DISABLED) || (m_ProblemNumber == CM_PROB_HARDWARE_DISABLED));
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
#pragma once
|
||||
#include "Node.h"
|
||||
|
||||
enum IconOverlays
|
||||
{
|
||||
OverlayProblem = 1,
|
||||
OverlayDisabled,
|
||||
OverlayInfo
|
||||
};
|
||||
|
||||
class CDeviceNode : public CNode
|
||||
{
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user