Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ojwb committed Dec 23, 2024
1 parent 16f8878 commit 375ea58
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/wrapmsw.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow)
wchar_t *e_val = buf;
size_t e_len;
if (p) {
++p;
e_len = p - buf;
} else {
e_val = L".";
Expand All @@ -58,12 +57,11 @@ WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow)
wcscpy(e, L"OPENSSL_MODULES=");
memcpy(e + strlen("OPENSSL_MODULES="), e_val, e_len * sizeof(wchar_t));
e[strlen("OPENSSL_MODULES=") + e_len] = L'\0';
wprintf(L"setenv %ls\n", e);
printf("setenv %ls\n", e);
_wputenv(e);
wcscpy(buf + got - 4, L"_.exe");
wprintf(L"command %ls\n", buf);
printf("command %ls\n", buf);
break;
}
len += len;
}
Expand Down

0 comments on commit 375ea58

Please sign in to comment.