Открыть боковую панель
Агарков Михаил Романович
ReactOS
Коммиты
3d516e71
Коммит
3d516e71
создал
Окт 03, 2024
по автору
Timo Kreuzer
Просмотр файлов
[USETUP] Install rosload.exe
владелец
17cf47df
Изменения
2
Скрыть пробелы
Построчно
Рядом
base/setup/lib/bootsup.c
Просмотр файла @
3d516e71
...
@@ -880,7 +880,6 @@ InstallMbrBootCodeToDisk(
...
@@ -880,7 +880,6 @@ InstallMbrBootCodeToDisk(
InstallMbrBootCode
);
InstallMbrBootCode
);
}
}
static
static
NTSTATUS
NTSTATUS
InstallBootloaderFiles
(
InstallBootloaderFiles
(
...
@@ -895,7 +894,19 @@ InstallBootloaderFiles(
...
@@ -895,7 +894,19 @@ InstallBootloaderFiles(
CombinePaths
(
SrcPath
,
ARRAYSIZE
(
SrcPath
),
2
,
SourceRootPath
->
Buffer
,
L"
\\
loader
\\
freeldr.sys"
);
CombinePaths
(
SrcPath
,
ARRAYSIZE
(
SrcPath
),
2
,
SourceRootPath
->
Buffer
,
L"
\\
loader
\\
freeldr.sys"
);
CombinePaths
(
DstPath
,
ARRAYSIZE
(
DstPath
),
2
,
SystemRootPath
->
Buffer
,
L"freeldr.sys"
);
CombinePaths
(
DstPath
,
ARRAYSIZE
(
DstPath
),
2
,
SystemRootPath
->
Buffer
,
L"freeldr.sys"
);
DPRINT1
(
"Copy: %S ==> %S
\n
"
,
SrcPath
,
DstPath
);
DPRINT
(
"Copy: %S ==> %S
\n
"
,
SrcPath
,
DstPath
);
Status
=
SetupCopyFile
(
SrcPath
,
DstPath
,
FALSE
);
if
(
!
NT_SUCCESS
(
Status
))
{
DPRINT1
(
"SetupCopyFile() failed (Status 0x%08lx)
\n
"
,
Status
);
return
Status
;
}
/* Copy rosload to the system partition, always overwriting the older version */
CombinePaths
(
SrcPath
,
ARRAYSIZE
(
SrcPath
),
2
,
SourceRootPath
->
Buffer
,
L"
\\
loader
\\
rosload.exe"
);
CombinePaths
(
DstPath
,
ARRAYSIZE
(
DstPath
),
2
,
SystemRootPath
->
Buffer
,
L"rosload.exe"
);
DPRINT
(
"Copy: %S ==> %S
\n
"
,
SrcPath
,
DstPath
);
Status
=
SetupCopyFile
(
SrcPath
,
DstPath
,
FALSE
);
Status
=
SetupCopyFile
(
SrcPath
,
DstPath
,
FALSE
);
if
(
!
NT_SUCCESS
(
Status
))
if
(
!
NT_SUCCESS
(
Status
))
{
{
...
...
base/setup/lib/utils/bldrsup.c
Просмотр файла @
3d516e71
...
@@ -124,7 +124,7 @@ NtLdrEnumerateBootEntries(
...
@@ -124,7 +124,7 @@ NtLdrEnumerateBootEntries(
// Question 2: What if many config files are possible?
// Question 2: What if many config files are possible?
NTOS_BOOT_LOADER_FILES
NtosBootLoaders
[]
=
NTOS_BOOT_LOADER_FILES
NtosBootLoaders
[]
=
{
{
{
FreeLdr
,
L"freeldr.sys
\0
"
,
L"freeldr.ini"
,
{
FreeLdr
,
L"freeldr.sys
\0
"
L"rosload.exe
\0
"
,
L"freeldr.ini"
,
OpenIniBootLoaderStore
,
CloseIniBootLoaderStore
,
(
PENUM_BOOT_STORE_ENTRIES
)
FreeLdrEnumerateBootEntries
},
OpenIniBootLoaderStore
,
CloseIniBootLoaderStore
,
(
PENUM_BOOT_STORE_ENTRIES
)
FreeLdrEnumerateBootEntries
},
{
NtLdr
,
L"ntldr
\0
"
L"osloader.exe
\0
"
,
L"boot.ini"
,
{
NtLdr
,
L"ntldr
\0
"
L"osloader.exe
\0
"
,
L"boot.ini"
,
OpenIniBootLoaderStore
,
CloseIniBootLoaderStore
,
(
PENUM_BOOT_STORE_ENTRIES
)
NtLdrEnumerateBootEntries
},
OpenIniBootLoaderStore
,
CloseIniBootLoaderStore
,
(
PENUM_BOOT_STORE_ENTRIES
)
NtLdrEnumerateBootEntries
},
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать