http://bugs.winehq.org/show_bug.cgi?id=33654 Piotr Caban <piotr.caban(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44546|0 |1 is obsolete| | --- Comment #1 from Piotr Caban <piotr.caban(a)gmail.com> 2013-05-25 05:13:52 CDT --- Created attachment 44548 --> http://bugs.winehq.org/attachment.cgi?id=44548 DuplicateHandle test There seems to be some kind of optimization in native implementation of DuplicateHandle function. In some cases when DUPLICATE_CLOSE_SOURCE flag is used output and input handles are identical. Thanks to it a handle stored inside msvcrt remains valid on windows. DuplicateHandle behavior is identical on all testbot machines. Output of attached program, Win7: in = 0000000B 1: in = 0000000B, out = 00000007, (in==out) = 0 in = 000000C4 1: in = 000000C4, out = 000000C4, (in==out) = 1 in = 000000C4 1: in = 000000C4, out = 000000C4, (in==out) = 1 Wine: in = 0000001B 1: in = 0000001B, out = 00000027, (in==out) = 0 in = 00000018 1: in = 00000018, out = 00000028, (in==out) = 0 in = 00000018 1: in = 00000018, out = 00000028, (in==out) = 0 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.