diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2014-12-31 12:20:48 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-01-09 22:43:51 +0100 |
commit | d751de7341029dc8335a6766dcdf5c8dc047f0bc (patch) | |
tree | 377af7443462b50731ce8a817efbc6803a2b3d3c /src/core/hle/kernel/kernel.cpp | |
parent | Merge pull request #444 from yuriks/handle-reform2 (diff) | |
download | yuzu-d751de7341029dc8335a6766dcdf5c8dc047f0bc.tar yuzu-d751de7341029dc8335a6766dcdf5c8dc047f0bc.tar.gz yuzu-d751de7341029dc8335a6766dcdf5c8dc047f0bc.tar.bz2 yuzu-d751de7341029dc8335a6766dcdf5c8dc047f0bc.tar.lz yuzu-d751de7341029dc8335a6766dcdf5c8dc047f0bc.tar.xz yuzu-d751de7341029dc8335a6766dcdf5c8dc047f0bc.tar.zst yuzu-d751de7341029dc8335a6766dcdf5c8dc047f0bc.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index a1bc6c5d8..7d40dcbee 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -44,7 +44,8 @@ ResultVal<Handle> HandleTable::Create(Object* obj) { objects[slot] = obj; Handle handle = generation | (slot << 15); - obj->handle = handle; + if (obj->handle == INVALID_HANDLE) + obj->handle = handle; return MakeResult<Handle>(handle); } |