mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 16:24:35 +01:00
fix get exe path issue
This commit is contained in:
@@ -114,7 +114,7 @@ static void openrct2_set_exe_path()
|
||||
pathEnd = strlen(exePath) - (strlen(exePath) - exeDelimiterIndex);
|
||||
strncpy(tempPath, exePath, pathEnd);
|
||||
tempPath[pathEnd] = '\0';
|
||||
_fullpath(gExePath, tempPath, strlen(tempPath));
|
||||
_fullpath(gExePath, tempPath, MAX_PATH);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user