This commit is contained in:
Nikolay Korolev
2020-04-20 01:04:57 +03:00
parent df376a13ea
commit 7e4c683824
5 changed files with 7 additions and 9 deletions

View File

@ -644,4 +644,4 @@ public:
static_assert(sizeof(CMenuManager) == 0x564, "CMenuManager: error");
extern CMenuManager FrontEndMenuManager;
extern DWORD _dwOperatingSystemVersion;
extern unsigned long _dwOperatingSystemVersion;

View File

@ -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;
}