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)