cec: fix access violation when starting the bootloader directly on windows