Skip to content

Commit

Permalink
Fix launcher not working in very deep folder paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Klocman committed Mar 3, 2023
1 parent fbb9562 commit a42667c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/BCU-launcher/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ int main()
}

auto cl = p.c_str();
wchar_t* cla = new wchar_t[500];
wcscpy_s(cla, 500, cl);
size_t pSizeTerminated = p.size() + 1;
wchar_t* cla = new wchar_t[pSizeTerminated];
wcscpy_s(cla, pSizeTerminated, cl);

STARTUPINFO si;
PROCESS_INFORMATION pi;
Expand Down

0 comments on commit a42667c

Please sign in to comment.