summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-20 00:04:57 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-20 00:04:57 +0200
commit7e4c68382416229cf0a58637bd9f308a6def1caa (patch)
tree61be1bbcb1242293639c1ad5a4ce3e3e72aea271 /src/core
parentsync with master (diff)
downloadre3-7e4c68382416229cf0a58637bd9f308a6def1caa.tar
re3-7e4c68382416229cf0a58637bd9f308a6def1caa.tar.gz
re3-7e4c68382416229cf0a58637bd9f308a6def1caa.tar.bz2
re3-7e4c68382416229cf0a58637bd9f308a6def1caa.tar.lz
re3-7e4c68382416229cf0a58637bd9f308a6def1caa.tar.xz
re3-7e4c68382416229cf0a58637bd9f308a6def1caa.tar.zst
re3-7e4c68382416229cf0a58637bd9f308a6def1caa.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/Frontend.h2
-rw-r--r--src/core/templates.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/core/Frontend.h b/src/core/Frontend.h
index 9fb0756f..ce9861c8 100644
--- a/src/core/Frontend.h
+++ b/src/core/Frontend.h
@@ -644,4 +644,4 @@ public:
static_assert(sizeof(CMenuManager) == 0x564, "CMenuManager: error");
extern CMenuManager FrontEndMenuManager;
-extern DWORD _dwOperatingSystemVersion; \ No newline at end of file
+extern unsigned long _dwOperatingSystemVersion; \ No newline at end of file
diff --git a/src/core/templates.h b/src/core/templates.h
index a1627357..51a24e4c 100644
--- a/src/core/templates.h
+++ b/src/core/templates.h
@@ -104,6 +104,10 @@ public:
return m_flags[i].free ? nil : (T*)&m_entries[i];
}
T *GetAt(int handle){
+#ifdef FIX_BUGS
+ if (handle == -1)
+ return nil;
+#endif
return m_flags[handle>>8].u == (handle & 0xFF) ?
(T*)&m_entries[handle >> 8] : nil;
}