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:
@@ -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();
|
||||
|
||||
@@ -182,7 +182,7 @@ void rct2_startup_checks()
|
||||
{
|
||||
// check if game is already running
|
||||
|
||||
RCT2_CALLPROC(0x00674C0B);
|
||||
RCT2_CALLPROC_EBPSAFE(0x00674C0B);
|
||||
}
|
||||
|
||||
void rct2_update()
|
||||
|
||||
Reference in New Issue
Block a user