forked from rosebudai/OpenRCT2-Web
Refactor/Improve String and Path Handling
This commit is contained in:
1 parent
211a0d7863
commit
e5ff7412e4
94 files changed
+1038
-989
No files matched your search
+2
-1
@@ -75,7 +75,8 @@ namespace Guard
|
||||
if (message != nullptr)
|
||||
{
|
||||
strcat(buffer, "\r\n");
|
||||
vsprintf((char *)strchr(buffer, 0), message, args);
|
||||
char *bufend = (char *)strchr(buffer, 0);
|
||||
vsnprintf(bufend, sizeof(buffer) - (bufend - buffer), message, args);
|
||||
}
|
||||
int result = MessageBox(nullptr, buffer, OPENRCT2_NAME, MB_ABORTRETRYIGNORE | MB_ICONEXCLAMATION);
|
||||
if (result == IDABORT)
|
||||
|
||||
Reference in new issue
Block a user