win-capture: Don't mark string mem. as executable
This is writing a string which LoadLibraryW can read in the target process; it's not being executed so there's no reason to mark it as executable.
This commit is contained in:
parent
0833651adc
commit
45ed0a39a8
@ -50,8 +50,7 @@ int inject_library_obf(HANDLE process, const wchar_t *dll,
|
||||
/* -------------------------------- */
|
||||
|
||||
size = (wcslen(dll) + 1) * sizeof(wchar_t);
|
||||
mem = virtual_alloc_ex(process, NULL, size, MEM_COMMIT,
|
||||
PAGE_EXECUTE_READWRITE);
|
||||
mem = virtual_alloc_ex(process, NULL, size, MEM_COMMIT, PAGE_READWRITE);
|
||||
if (!mem) {
|
||||
goto fail;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user