mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 22:56:13 +00:00
Refactor to use TIB LastErrorValue
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
#include <unistd.h>
|
||||
#include <vector>
|
||||
|
||||
thread_local uint32_t wibo::lastError = 0;
|
||||
char **wibo::argv;
|
||||
int wibo::argc;
|
||||
std::filesystem::path wibo::guestExecutablePath;
|
||||
@@ -605,7 +604,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
// Reset last error
|
||||
wibo::lastError = 0;
|
||||
kernel32::setLastError(0);
|
||||
|
||||
// Invoke the damn thing
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user