From 64d61aac3331616b961c118630976ee33f486584 Mon Sep 17 00:00:00 2001 From: elasota <1137273+elasota@users.noreply.github.com> Date: Wed, 7 Aug 2024 01:00:39 -0400 Subject: [PATCH] Quit out instead of infinite looping if the Packaged dir can't be found --- Aerofoil/GpFileSystem_Win32.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Aerofoil/GpFileSystem_Win32.cpp b/Aerofoil/GpFileSystem_Win32.cpp index 9f566fa..f9a294d 100644 --- a/Aerofoil/GpFileSystem_Win32.cpp +++ b/Aerofoil/GpFileSystem_Win32.cpp @@ -206,7 +206,11 @@ bool GpFileSystem_Win32::Init() break; } else + { + if (currentPathLength == 0) + break; currentPathLength--; + } } if (currentPathLength == 0)