mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-21 04:33:56 +00:00
Fix compilation
This commit is contained in:
@@ -298,11 +298,11 @@ typedef struct _IMAGE_IMPORT_BY_NAME
|
||||
|
||||
typedef struct _IMAGE_IMPORT_DESCRIPTOR
|
||||
{
|
||||
union
|
||||
{
|
||||
DWORD Characteristics; // 0 for terminating null import descriptor
|
||||
DWORD OriginalFirstThunk; // RVA to original unbound IAT (PIMAGE_THUNK_DATA)
|
||||
} DUMMYUNIONNAME;
|
||||
// union
|
||||
//{
|
||||
// DWORD Characteristics; // 0 for terminating null import descriptor
|
||||
DWORD OriginalFirstThunk; // RVA to original unbound IAT (PIMAGE_THUNK_DATA)
|
||||
//} DUMMYUNIONNAME;
|
||||
DWORD TimeDateStamp; // 0 if not bound,
|
||||
// -1 if bound, and real date\time stamp
|
||||
// in IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT (new BIND)
|
||||
|
||||
@@ -12,4 +12,12 @@ namespace utils
|
||||
object& operator=(object&&) = default;
|
||||
object& operator=(const object&) = default;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
void reset_object_with_delayed_destruction(T& obj)
|
||||
{
|
||||
T new_obj{};
|
||||
const auto old = std::move(obj);
|
||||
obj = std::move(new_obj);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user