Refactor to use TIB LastErrorValue

This commit is contained in:
2025-10-28 10:01:21 -06:00
parent 8bd15bd272
commit 9367f003c5
34 changed files with 785 additions and 745 deletions

View File

@@ -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
{