projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[FREELDR] Diverse enhancements.
[reactos.git]
/
boot
/
freeldr
/
freeldr
/
miscboot.c
diff --git
a/boot/freeldr/freeldr/miscboot.c
b/boot/freeldr/freeldr/miscboot.c
index
98cb527
..
0d12e4b
100644
(file)
--- a/
boot/freeldr/freeldr/miscboot.c
+++ b/
boot/freeldr/freeldr/miscboot.c
@@
-32,7
+32,7
@@
LoadAndBootBootSector(
IN PCHAR Envp[])
{
PCSTR FileName;
IN PCHAR Envp[])
{
PCSTR FileName;
-
PFILE FilePointer
;
+
ULONG FileId
;
ULONG BytesRead;
/* Find all the message box settings and run them */
ULONG BytesRead;
/* Find all the message box settings and run them */
@@
-46,15
+46,16
@@
LoadAndBootBootSector(
return EINVAL;
}
return EINVAL;
}
- File
Pointer
= FsOpenFile(FileName);
- if (!File
Pointer
)
+ File
Id
= FsOpenFile(FileName);
+ if (!File
Id
)
{
UiMessageBox("%s not found.", FileName);
return ENOENT;
}
/* Read boot sector */
{
UiMessageBox("%s not found.", FileName);
return ENOENT;
}
/* Read boot sector */
- if (!FsReadFile(FilePointer, 512, &BytesRead, (void*)0x7c00) || (BytesRead != 512))
+ if (ArcRead(FileId, (void*)0x7c00, 512, &BytesRead) != ESUCCESS ||
+ (BytesRead != 512))
{
UiMessageBox("Unable to read boot sector.");
return EIO;
{
UiMessageBox("Unable to read boot sector.");
return EIO;