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 result[OPENRCT2_MAX_COMMAND_LENGTH];
|
||||||
char *return_value;
|
char *return_value;
|
||||||
|
|
||||||
size = OPENRCT2_MAX_COMMAND_LENGTH;
|
size = MAX_PATH;
|
||||||
dtype = get_dialog_app(executable, &size);
|
dtype = get_dialog_app(executable, &size);
|
||||||
|
|
||||||
switch (dtype) {
|
switch (dtype) {
|
||||||
|
|
Loading…
Reference in New Issue