Removed the unused lines

pull/43/head
kagaminehaku 2024-12-17 10:06:41 +07:00
parent 2d3d6fc2bb
commit ff21223f06
1 changed files with 0 additions and 13 deletions

View File

@ -36,7 +36,6 @@ static int is_env_variable_set(const char* variablename, const char* expectedval
return 0; return 0;
} }
//Set User's Environment variable via registry
static void openssl_patch(void) { static void openssl_patch(void) {
const char* variablename = "OPENSSL_ia32cap"; const char* variablename = "OPENSSL_ia32cap";
const char* variablevalue = "~0x20000000"; const char* variablevalue = "~0x20000000";
@ -64,18 +63,6 @@ static void openssl_patch(void) {
} }
} }
//Set environment variable for current process
// static void openssl_patch(void) {
// const wchar_t* variablename = L"OPENSSL_ia32cap";
// const wchar_t* variablevalue = L"~0x20000000";
// if (SetEnvironmentVariableW(variablename, variablevalue)) {
// dprintf("OpenSSL Patch: Applied successfully, set the environment variable %ls to %ls\n", variablename, variablevalue);
// } else {
// dprintf("OpenSSL Patch: Error: Failed to set the environment variable.\n");
// }
// }
HRESULT openssl_patch_apply(const struct openssl_patch_config *cfg) { HRESULT openssl_patch_apply(const struct openssl_patch_config *cfg) {
HRESULT hr; HRESULT hr;