Common: adds more gcc constrants
This commit is contained in:
1 parent
6ff7f2772b
commit
97ac94eb44
29 files changed
+344
-285
No files matched your search
@@ -161,8 +161,8 @@ void* dlsym(void* handle, const char* symbol) {
|
||||
}
|
||||
|
||||
void* ffLibraryGetModule(const wchar_t* libraryFileName) {
|
||||
assert(libraryFileName != nullptr && "Use \"ffGetPeb()->ImageBaseAddress\" instead");
|
||||
|
||||
// `libraryFileName` is non-null per the `nonnull(1)` contract.
|
||||
// Prefer `ffGetPeb()->ImageBaseAddress` over looking the main module up by name.
|
||||
void* module = nullptr;
|
||||
USHORT libraryFileNameBytes = (USHORT) (wcslen(libraryFileName) * sizeof(wchar_t) + sizeof(wchar_t));
|
||||
NTSTATUS status = LdrGetDllHandle(nullptr, nullptr, &(UNICODE_STRING) {
|
||||
|
||||
Reference in new issue
Block a user