mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
Make dev node count correct, since for example Mac Virtual PC BIOS reports slightly wrong number which must be &0xFF.
This patch removes "Memory allocation failed: Out of memory" error while booting Freeldr. svn path=/trunk/; revision=13387
This commit is contained in:
parent
446441503d
commit
5f67689cbb
1 changed files with 3 additions and 0 deletions
|
@ -351,6 +351,9 @@ DetectPnpBios(HKEY SystemKey, U32 *BusNumber)
|
|||
|
||||
|
||||
x = PnpBiosGetDeviceNodeCount(&NodeSize, &NodeCount);
|
||||
NodeCount &= 0xFF; // needed since some fscked up BIOSes return
|
||||
// wrong info (e.g. Mac Virtual PC)
|
||||
// e.g. look: http://my.execpc.com/~geezer/osd/pnp/pnp16.c
|
||||
if (x != 0 || NodeSize == 0 || NodeCount == 0)
|
||||
{
|
||||
DbgPrint((DPRINT_HWDETECT, "PnP-BIOS failed to enumerate device nodes\n"));
|
||||
|
|
Loading…
Reference in a new issue