mirror of
https://github.com/reactos/reactos.git
synced 2024-09-19 17:21:14 +00:00
[UMPNPMGR] Add requirements list support to PNP_GetFirstLogConf and PNP_GetNextLogConf
This commit is contained in:
parent
ca05f561c1
commit
c1b9bb5700
|
@ -4250,7 +4250,7 @@ PNP_GetFirstLogConf(
|
|||
{
|
||||
DPRINT("REG_RESOURCE_LIST->Count %lu\n", ((PCM_RESOURCE_LIST)lpData)->Count);
|
||||
|
||||
/* Indicate that we reached the end of the list */
|
||||
/* Fail, if we do not have any resource */
|
||||
if (((PCM_RESOURCE_LIST)lpData)->Count == 0)
|
||||
{
|
||||
DPRINT1("No resource descriptors!\n");
|
||||
|
@ -4260,11 +4260,16 @@ PNP_GetFirstLogConf(
|
|||
}
|
||||
else if (RegDataType == REG_RESOURCE_REQUIREMENTS_LIST)
|
||||
{
|
||||
DPRINT1("FIXME: REG_RESOURCE_REQUIREMENTS_LIST\n");
|
||||
/* FIXME */
|
||||
DPRINT("REG_RESOURCE_REQUIREMENTS_LIST->AlternativeLists %lu\n",
|
||||
((PIO_RESOURCE_REQUIREMENTS_LIST)lpData)->AlternativeLists);
|
||||
|
||||
/* Fail, if we do not have any requirements */
|
||||
if (((PIO_RESOURCE_REQUIREMENTS_LIST)lpData)->AlternativeLists == 0)
|
||||
{
|
||||
ret = CR_NO_MORE_LOG_CONF;
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
done:
|
||||
if (lpData != NULL)
|
||||
|
@ -4362,11 +4367,23 @@ PNP_GetNextLogConf(
|
|||
}
|
||||
else if (RegDataType == REG_RESOURCE_REQUIREMENTS_LIST)
|
||||
{
|
||||
DPRINT1("FIXME: REG_RESOURCE_REQUIREMENTS_LIST\n");
|
||||
/* FIXME */
|
||||
DPRINT("REG_RESOURCE_REQUIREMENTS_LIST->AlternativeLists %lu\n",
|
||||
((PIO_RESOURCE_REQUIREMENTS_LIST)lpData)->AlternativeLists);
|
||||
|
||||
/* Fail, if we are beyond the end of the list */
|
||||
if (ulCurrentTag >= ((PIO_RESOURCE_REQUIREMENTS_LIST)lpData)->AlternativeLists)
|
||||
{
|
||||
ret = CR_INVALID_LOG_CONF;
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* Indicate that we reached the end of the list */
|
||||
if (ulCurrentTag == ((PIO_RESOURCE_REQUIREMENTS_LIST)lpData)->AlternativeLists - 1)
|
||||
{
|
||||
ret = CR_NO_MORE_LOG_CONF;
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
/* Return the next tag value */
|
||||
*pulNextTag = ulCurrentTag + 1;
|
||||
|
|
Loading…
Reference in a new issue