[FREELDR] Factor duplicated code into a GetOSLoadingMethod() helper
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 18 Apr 2022 22:09:49 +0000 (00:09 +0200)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 12 Mar 2024 16:15:02 +0000 (17:15 +0100)
commit9ae73010c219bf7195a3b4be2897269c1e57a0aa
treeb1d923d57932c8950e2e9a56b8b046ae4a27087a
parent458ca7766f5f8ec9b021f14449317273170bc75d
[FREELDR] Factor duplicated code into a GetOSLoadingMethod() helper

This removes duplicated code present in both LoadOperatingSystem()
and EditOperatingSystemEntry().

+ Add SAL annotations to the related functions.
boot/freeldr/freeldr/bootmgr.c
boot/freeldr/freeldr/include/freeldr.h