Fix incorrect stack (dropping one too many items) when a phandle of 0 is passed into getprop CIF.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@735 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Mark Cave-Ayland
2010-04-05 19:19:37 +00:00
committed by Mark Cave-Ayland
parent f21a9ceb00
commit aa6519e1f2

View File

@@ -92,7 +92,7 @@ external
then
\ return -1 if phandle is 0 (MacOS actually does this)
?dup 0= if 2drop 2drop -1 exit then
?dup 0= if drop 2drop -1 exit then
over cstrlen swap
?phandle get-package-property if 2drop -1 exit then