From 3de56b3af48334e6be377844d6ce5f81d0a46fc7 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Wed, 31 Dec 2014 13:04:04 +0000 Subject: [PATCH] [FREELDR] Display an error message with the file name in case we cannot get a file size over PXE. This makes the error message "(../../boot/freeldr/freeldr/fs/pxe.c:107) err: PxeCall(0x25, 0000E8DE) failed with exit=1 status=0x1" in case of PXE boot less dramatic: it is expected not to find NTBOOTDD.SYS svn path=/trunk/; revision=65917 --- reactos/boot/freeldr/freeldr/fs/pxe.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/boot/freeldr/freeldr/fs/pxe.c b/reactos/boot/freeldr/freeldr/fs/pxe.c index 77c083547d5..2a750001b41 100644 --- a/reactos/boot/freeldr/freeldr/fs/pxe.c +++ b/reactos/boot/freeldr/freeldr/fs/pxe.c @@ -162,7 +162,11 @@ static LONG PxeOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId) sizeData.ServerIPAddress = _ServerIP; strncpy((CHAR*)sizeData.FileName, Path, sizeof(sizeData.FileName)); if (!CallPxe(PXENV_TFTP_GET_FSIZE, &sizeData)) + { + ERR("Failed to get '%s' size\n", Path); return EIO; + } + _FileSize = sizeData.FileSize; if (_FileSize < 1024 * 1024) {