mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 20:27:43 +00:00
Ensure uninitialized data is not accessed in normal operation
This commit is contained in:
@@ -224,12 +224,14 @@ void Connection::_blenderDied() {
|
||||
|
||||
static std::atomic_bool BlenderFirstInit(false);
|
||||
|
||||
#if _WIN32
|
||||
static bool RegFileExists(const hecl::SystemChar* path) {
|
||||
if (!path)
|
||||
return false;
|
||||
hecl::Sstat theStat;
|
||||
return !hecl::Stat(path, &theStat) && S_ISREG(theStat.st_mode);
|
||||
}
|
||||
#endif
|
||||
|
||||
Connection::Connection(int verbosityLevel) {
|
||||
#if !WINDOWS_STORE
|
||||
|
||||
Reference in New Issue
Block a user