summaryrefslogtreecommitdiff
path: root/src/spawn.cpp
diff options
context:
space:
mode:
authorTannin <sherb@gmx.net>2016-02-09 20:57:20 +0100
committerTannin <sherb@gmx.net>2016-02-09 20:57:20 +0100
commitfd68248698357591f99c3091d5b15a3084fc078d (patch)
tree106dcdc18a97a413e45d7432233cf0ed7c13034e /src/spawn.cpp
parent1ad2115e013bb8a436b1c434fe569b21f081594b (diff)
fixed browse-button for mod directory (in settings)
Diffstat (limited to 'src/spawn.cpp')
-rw-r--r--src/spawn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spawn.cpp b/src/spawn.cpp
index fc0b448a..0ff64af0 100644
--- a/src/spawn.cpp
+++ b/src/spawn.cpp
@@ -60,7 +60,7 @@ static bool spawn(LPCWSTR binary, LPCWSTR arguments, LPCWSTR currentDirectory,
si.dwFlags |= STARTF_USESTDHANDLES;
}
si.cb = sizeof(si);
- int length = wcslen(binary) + wcslen(arguments) + 4;
+ size_t length = wcslen(binary) + wcslen(arguments) + 4;
wchar_t *commandLine = nullptr;
if (arguments[0] != L'\0') {
commandLine = new wchar_t[length];