From 7956f0b30c208e2af7c56c9b127dbcbd25555b03 Mon Sep 17 00:00:00 2001 From: maxpat78 Date: Sat, 3 Aug 2024 10:43:04 +0200 Subject: [PATCH] Update bios_vhd.cpp try to fix realpath use on non-Windows platforms --- src/ints/bios_vhd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ints/bios_vhd.cpp b/src/ints/bios_vhd.cpp index 5ba03e6521..26d97f4264 100644 --- a/src/ints/bios_vhd.cpp +++ b/src/ints/bios_vhd.cpp @@ -733,10 +733,11 @@ uint32_t imageDiskVHD::CreateDifferencing(const char* filename, const char* base //Locators - Windows 11 wants at least the relative W2ru locator, or won't mount! // we store the absolute pathname to prevent complex depth calculations - char absBasePathName[MAX_PATH]; #if defined (WIN32) + char absBasePathName[MAX_PATH]; _fullpath(absBasePathName, basename, MAX_PATH); #else + char absBasePathName[PATH_MAX]; realpath(basename, absBasePathName); #endif uint32_t l_basename = strlen(absBasePathName);