Skip to content

Commit

Permalink
VStudio SUBMIT loop - bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MockbaTheBorg committed Nov 2, 2024
1 parent 0d796f3 commit f6e9684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RunCPM/abstraction_vstudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ uint8 _Truncate(char* fn, uint8 rc) {
wchar_t filename[128];
uint8 fullpath[128] = FILEBASE;
strcat((char*)fullpath, fn);
MultiByteToWideChar(CP_ACP, 0, (char*)fullpath, -1, filename, 15);
MultiByteToWideChar(CP_ACP, 0, (char*)fullpath, -1, filename, strlen(fullpath)+1);
HANDLE fh = CreateFileW(filename, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
if (fh == INVALID_HANDLE_VALUE) {
result = 0xff;
Expand Down

0 comments on commit f6e9684

Please sign in to comment.