mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
[UMPNPMGR] Add requirements list support to PNP_GetFirstLogConf and PNP_GetNextLogConf
This commit is contained in:
parent
ca05f561c1
commit
c1b9bb5700
1 changed files with 26 additions and 9 deletions
|
@ -4250,7 +4250,7 @@ PNP_GetFirstLogConf(
|
||||||
{
|
{
|
||||||
DPRINT("REG_RESOURCE_LIST->Count %lu\n", ((PCM_RESOURCE_LIST)lpData)->Count);
|
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)
|
if (((PCM_RESOURCE_LIST)lpData)->Count == 0)
|
||||||
{
|
{
|
||||||
DPRINT1("No resource descriptors!\n");
|
DPRINT1("No resource descriptors!\n");
|
||||||
|
@ -4260,10 +4260,15 @@ PNP_GetFirstLogConf(
|
||||||
}
|
}
|
||||||
else if (RegDataType == REG_RESOURCE_REQUIREMENTS_LIST)
|
else if (RegDataType == REG_RESOURCE_REQUIREMENTS_LIST)
|
||||||
{
|
{
|
||||||
DPRINT1("FIXME: REG_RESOURCE_REQUIREMENTS_LIST\n");
|
DPRINT("REG_RESOURCE_REQUIREMENTS_LIST->AlternativeLists %lu\n",
|
||||||
/* FIXME */
|
((PIO_RESOURCE_REQUIREMENTS_LIST)lpData)->AlternativeLists);
|
||||||
ret = CR_NO_MORE_LOG_CONF;
|
|
||||||
goto done;
|
/* 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:
|
done:
|
||||||
|
@ -4362,10 +4367,22 @@ PNP_GetNextLogConf(
|
||||||
}
|
}
|
||||||
else if (RegDataType == REG_RESOURCE_REQUIREMENTS_LIST)
|
else if (RegDataType == REG_RESOURCE_REQUIREMENTS_LIST)
|
||||||
{
|
{
|
||||||
DPRINT1("FIXME: REG_RESOURCE_REQUIREMENTS_LIST\n");
|
DPRINT("REG_RESOURCE_REQUIREMENTS_LIST->AlternativeLists %lu\n",
|
||||||
/* FIXME */
|
((PIO_RESOURCE_REQUIREMENTS_LIST)lpData)->AlternativeLists);
|
||||||
ret = CR_NO_MORE_LOG_CONF;
|
|
||||||
goto done;
|
/* 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 */
|
/* Return the next tag value */
|
||||||
|
|
Loading…
Reference in a new issue