remove weird double spaces, remove /EXPORT from build.bat in favor of __declspec(dllexport)
This commit is contained in:
1 parent
9fa2a7e0db
commit
83d48e09bb
41 files changed
+156
-170
No files matched your search
@@ -9,9 +9,9 @@
|
||||
// HANDLE_TO_KH / KH_TO_HANDLE do that conversion in one place.
|
||||
// - INVALID_HANDLE_VALUE maps to kernel handle 0 (the always-invalid slot).
|
||||
// - HeapAlloc / HeapFree / HeapReAlloc ignore the HANDLE heap argument and
|
||||
// always use the single kernel user-heap. This is fine: we don't expose
|
||||
// always use the single kernel user-heap. This is fine: we don't expose
|
||||
// multiple heaps, and NULL is a legal (no-op) heap argument under Win32.
|
||||
// - GetLastError / SetLastError are per-thread on Windows. We keep a single
|
||||
// - GetLastError / SetLastError are per-thread on Windows. We keep a single
|
||||
// global for now; enough for Bink and similar single-threaded guests.
|
||||
// - File I/O uses SYS_OPEN_FILE / SYS_READ_FILE / SYS_SEEK_FILE /
|
||||
// SYS_GET_FILE_SIZE / SYS_CLOSE_HANDLE (unified close path - no separate
|
||||
@@ -342,7 +342,7 @@ __declspec(dllexport) DWORD GetCurrentThreadId(void) { return (DWORD)SysGetCurr
|
||||
__declspec(dllexport) DWORD GetCurrentProcessId(void) { return (DWORD)SysGetCurrentPid(); }
|
||||
|
||||
// GetModuleHandleA/W – no PE map; return NULL so callers that check can fail
|
||||
// gracefully. GetModuleHandleA(NULL) on Windows returns the exe base; we
|
||||
// gracefully. GetModuleHandleA(NULL) on Windows returns the exe base; we
|
||||
// return a recognisable non-NULL sentinel so code that just passes it to
|
||||
// GetProcAddress doesn't immediately crash.
|
||||
__declspec(dllexport) HANDLE GetModuleHandleA(const char* lpModuleName) {
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ typedef void* HWND;
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
// GetAsyncKeyState: returns non-zero if a key is available in the input
|
||||
// buffer. We have no per-key state, so the vKey argument is ignored and
|
||||
// buffer. We have no per-key state, so the vKey argument is ignored and
|
||||
// the high bit (key-down) is set whenever SysKbPoll reports data waiting.
|
||||
__declspec(dllexport) short GetAsyncKeyState(int vKey) {
|
||||
(void)vKey;
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ typedef struct {
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
// timeGetTime is the lightweight alternative to GetTickCount; both return
|
||||
// milliseconds since system start. We forward to the kernel tick counter.
|
||||
// milliseconds since system start. We forward to the kernel tick counter.
|
||||
extern uint64_t SysGetTick(void);
|
||||
|
||||
__declspec(dllexport) unsigned long timeGetTime(void) {
|
||||
|
||||
Reference in new issue
Block a user