mirror of
https://github.com/decompals/wibo.git
synced 2025-12-13 07:06:18 +00:00
Minor cleanup
This commit is contained in:
@@ -187,7 +187,7 @@ bool Handles::duplicateTo(HANDLE src, Handles &dst, HANDLE &out, uint32_t desire
|
||||
uint32_t effAccess = (options & DUPLICATE_SAME_ACCESS) ? meta.grantedAccess : (desiredAccess & meta.grantedAccess);
|
||||
const uint32_t flags = (inherit ? HANDLE_FLAG_INHERIT : 0);
|
||||
|
||||
// Reuse the same handle if duplicating within the same table and no changes
|
||||
// Reuse the same handle if duplicating with DUPLICATE_CLOSE_SOURCE within the same table and no changes
|
||||
if (&dst == this && closeSource && effAccess == meta.grantedAccess && flags == meta.flags) {
|
||||
out = src;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user