mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 14:46:09 +00:00
Split kernel32 into separate files (part 2)
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
#include "errhandlingapi.h"
|
||||
#include "common.h"
|
||||
#include "kernel32.h"
|
||||
#include "errors.h"
|
||||
|
||||
namespace {
|
||||
|
||||
LPTOP_LEVEL_EXCEPTION_FILTER g_topLevelExceptionFilter = nullptr;
|
||||
UINT g_processErrorMode = 0;
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace kernel32 {
|
||||
|
||||
void setLastErrorFromErrno() { wibo::lastError = wibo::winErrorFromErrno(errno); }
|
||||
|
||||
DWORD WIN_FUNC GetLastError() {
|
||||
DEBUG_LOG("GetLastError() -> %u\n", wibo::lastError);
|
||||
return wibo::lastError;
|
||||
|
||||
Reference in New Issue
Block a user