@@ -880,7 +880,6 @@ InstallMbrBootCodeToDisk(
880880 InstallMbrBootCode );
881881}
882882
883-
884883static
885884NTSTATUS
886885InstallBootloaderFiles (
@@ -895,7 +894,19 @@ InstallBootloaderFiles(
895894 CombinePaths (SrcPath , ARRAYSIZE (SrcPath ), 2 , SourceRootPath -> Buffer , L"\\loader\\freeldr.sys" );
896895 CombinePaths (DstPath , ARRAYSIZE (DstPath ), 2 , SystemRootPath -> Buffer , L"freeldr.sys" );
897896
898- DPRINT1 ("Copy: %S ==> %S\n" , SrcPath , DstPath );
897+ DPRINT ("Copy: %S ==> %S\n" , SrcPath , DstPath );
898+ Status = SetupCopyFile (SrcPath , DstPath , FALSE);
899+ if (!NT_SUCCESS (Status ))
900+ {
901+ DPRINT1 ("SetupCopyFile() failed (Status 0x%08lx)\n" , Status );
902+ return Status ;
903+ }
904+
905+ /* Copy rosload to the system partition, always overwriting the older version */
906+ CombinePaths (SrcPath , ARRAYSIZE (SrcPath ), 2 , SourceRootPath -> Buffer , L"\\loader\\rosload.exe" );
907+ CombinePaths (DstPath , ARRAYSIZE (DstPath ), 2 , SystemRootPath -> Buffer , L"rosload.exe" );
908+
909+ DPRINT ("Copy: %S ==> %S\n" , SrcPath , DstPath );
899910 Status = SetupCopyFile (SrcPath , DstPath , FALSE);
900911 if (!NT_SUCCESS (Status ))
901912 {
0 commit comments