From c60a46967fd697f16d2a9d230fc4931de423dc99 Mon Sep 17 00:00:00 2001 From: belliash Date: Sun, 16 Oct 2022 23:49:40 +0200 Subject: [PATCH] Copy module path; this fixes modules loading on i686 --- xtldr/xtldr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtldr/xtldr.c b/xtldr/xtldr.c index e5b93ad..25eb042 100644 --- a/xtldr/xtldr.c +++ b/xtldr/xtldr.c @@ -131,7 +131,7 @@ BlLoadEfiModules() BlDbgPrint(L"Loading module '%S' ... ", ModuleName); /* Set correct path to the module file */ - RtlWideStringConcatenate(ModulePath, ModulesDirPath, 0); + RtlCopyMemory(ModulePath, ModulesDirPath, sizeof(ModulePath) / sizeof(WCHAR)); RtlWideStringConcatenate(ModulePath, ModuleName, 0); /* Find valid device path */