Skip to content

Commit a0748c7

Browse files
authored
Merge pull request #1084 from PlayEveryWare/fix/command-line-substringfix
fix: Substring Command Line Parameters
2 parents fff90a7 + 4fc9b6c commit a0748c7

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:969153308fe56d512c998509226a5a84918b8624c4691f06345a434396d136a7
2+
oid sha256:4ece6c096c42b55cbefacb01a86ce4d8f2d24b4313195f631ed514931d37636f
33
size 122880
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:fcd9618285bb1bf56c72f46f64e228cda95aa27e64ea2a0199d649dbfebd8c10
2+
oid sha256:e7220e703348c312cf834d028c6e9a653b28430c77427b5d21b510683108dd4b
33
size 604672
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:cf018202e613caa46f9f32301f728a6386cfb9b3c036b0f4b300725336f4e5e1
2+
oid sha256:68a9238433740a835c434ccdd05e58ed6f23950a6aaac4a1caa0899452d4c808
33
size 87040
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:361b0b0201d2b0afbf8f982cd529faa6cf148aeb7e9d303df7dff7854b61414f
2+
oid sha256:5e396a9b292db1e24741a5c9973e26c13336007795a0d2597cc948ac8cb9e39c
33
size 467968

lib/NativeCode/DynamicLibraryLoaderHelper/NativeRender/include/io_helpers.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,10 @@ namespace pew::eos::io_helpers
125125
if (match != nullptr)
126126
{
127127
// extract the value.
128+
// The argument should have started with "-" and continued with "=",
129+
// so it needs to be substringed the length of the match plus these two characters
128130
std::string arg_value;
129-
arg_value = argument.substr(match->length());
131+
arg_value = argument.substr(match->length() + 2);
130132

131133
if (!arg_value.empty())
132134
{

0 commit comments

Comments
 (0)