diff --git a/reactos/lib/devmgr/misc.c b/reactos/lib/devmgr/misc.c index 93bbc4832ff..b3ad3b828a5 100644 --- a/reactos/lib/devmgr/misc.c +++ b/reactos/lib/devmgr/misc.c @@ -401,7 +401,7 @@ GetDeviceLocationString(IN DEVINST dnDevInst OPTIONAL, } -static const UINT ProblemStringId[] = +static const UINT ProblemStringId[NUM_CM_PROB] = { IDS_DEV_NO_PROBLEM, IDS_DEV_NOT_CONFIGURED, diff --git a/reactos/w32api/include/ddk/cfg.h b/reactos/w32api/include/ddk/cfg.h index 37e8fe64ae9..a15dfb3c82b 100644 --- a/reactos/w32api/include/ddk/cfg.h +++ b/reactos/w32api/include/ddk/cfg.h @@ -80,6 +80,8 @@ extern "C" { #define CM_PROB_HELD_FOR_EJECT 0x0000002F #define CM_PROB_DRIVER_BLOCKED 0x00000030 #define CM_PROB_REGISTRY_TOO_LARGE 0x00000031 +#define CM_PROB_SETPROPERTIES_FAILED 0x00000032 +#define NUM_CM_PROB 0x00000033 #define LCPRI_FORCECONFIG 0x00000000 #define LCPRI_BOOTCONFIG 0x00000001