summaryrefslogtreecommitdiff
path: root/src/os/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/windows')
-rw-r--r--src/os/windows/win32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/windows/win32.cpp b/src/os/windows/win32.cpp
index eee81be40..3ed0cdb2a 100644
--- a/src/os/windows/win32.cpp
+++ b/src/os/windows/win32.cpp
@@ -429,7 +429,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
argc = ParseCommandLine(cmdline, argv, lengthof(argv));
/* Make sure our arguments contain only valid UTF-8 characters. */
- for (int i = 0; i < argc; i++) ValidateString(argv[i]);
+ for (int i = 0; i < argc; i++) StrMakeValidInPlace(argv[i]);
openttd_main(argc, argv);