Skip to content

Commit

Permalink
Replace the #error directive with a FIXME comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNNX committed Apr 14, 2024
1 parent ce77d06 commit 49ff834
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions COREDLL/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static struct
EntrypointHijackCode[] = { {0x68, WceclEntrypointWrapper, 0xC3} };
#pragma pack(pop)
#else
#error No patching code for non x86 architectures
/* FIXME: No patching code for architectures other than x86. */
#endif

static BYTE EntrypointRepairCode[sizeof(EntrypointHijackCode)];
Expand Down Expand Up @@ -169,8 +169,11 @@ BOOL __stdcall DllMain(HMODULE hModule,
CloseHandle(Info.hProcess);
CloseHandle(Info.hThread);
}

#ifdef _M_IX86
WceclPatchEntrypoint();
#else
/* FIXME: No patching code for architectures other than x86. */
#endif
break;
};
case DLL_THREAD_ATTACH:
Expand Down
2 changes: 1 addition & 1 deletion COREDLL/other.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void* _fileno_WCECL(FILE* file)
return result;
}

/* https://stackoverflow.com/a/3989842 */
/* https://stackoverflow.com/a/3989842 */
return (void*)_get_osfhandle(_fileno(file));
}

Expand Down

0 comments on commit 49ff834

Please sign in to comment.