1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 09:44:52 +01:00

fixed strcat and rct2_startup_checks()

This commit is contained in:
anyc
2014-05-19 21:43:34 +02:00
parent e95e6310dc
commit 872f4521a0
2 changed files with 3 additions and 2 deletions

View File

@@ -390,7 +390,8 @@ char* osinterface_open_directory_browser(char *title) {
// Copy the path directory to the buffer
if (SHGetPathFromIDList(pidl, pszBuffer)) {
// Store pszBuffer (and the path) in the outPath
outPath = strcat("", pszBuffer);
outPath = (char*) malloc(strlen(pszBuffer)+1);
strcpy(outPath, pszBuffer);
}
}
CoUninitialize();

View File

@@ -182,7 +182,7 @@ void rct2_startup_checks()
{
// check if game is already running
RCT2_CALLPROC(0x00674C0B);
RCT2_CALLPROC_EBPSAFE(0x00674C0B);
}
void rct2_update()