mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix invalid array size in platform_open_directory_browser
This commit is contained in:
parent
8cd704eca7
commit
07d943575d
|
@ -470,7 +470,7 @@ utf8 *platform_open_directory_browser(const utf8 *title) {
|
|||
char result[OPENRCT2_MAX_COMMAND_LENGTH];
|
||||
char *return_value;
|
||||
|
||||
size = OPENRCT2_MAX_COMMAND_LENGTH;
|
||||
size = MAX_PATH;
|
||||
dtype = get_dialog_app(executable, &size);
|
||||
|
||||
switch (dtype) {
|
||||
|
|
Loading…
Reference in New Issue