https://bugs.winehq.org/show_bug.cgi?id=44818
Bug ID: 44818 Summary: ntdll.NtClose (kernel32.CloseHandle) should throw invalid handle exception (EXCEPTION_INVALID_HANDLE) for invalid handles when run under debugger Product: Wine Version: 3.4 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
to track https://github.com/wine-staging/wine-staging/blob/master/patches/ntdll-Excep...
Unfortunately there is no further information/details. My guess would be that Sebastian observed this behaviour while debugging some application under native Windows.
MSDN:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724211(v=vs.85).a...
--- quote --- If the application is running under a debugger, the function will throw an exception if it receives either a handle value that is not valid or a pseudo-handle value. This can happen if you close a handle twice, or if you call CloseHandle on a handle returned by the FindFirstFile function instead of calling the FindClose function. --- quote ---
Some forum thread:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/fd5deb8e-4003-4de6-94...
$ wine --version wine-3.4
Regards
https://bugs.winehq.org/show_bug.cgi?id=44818
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/blob/mast | |er/patches/ntdll-Exception/ | |0001-ntdll-Throw-exception- | |if-invalid-handle-is-passed | |-to.patch Status|NEW |STAGED Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=44818
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|STAGED |RESOLVED CC| |leslie_alistair@hotmail.com Fixed by SHA1| |c61c33ee66ea0e97450ac793ebc | |4ac41a1ccc793
--- Comment #1 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Fixed by https://source.winehq.org/git/wine.git/?a=commit;h=c61c33ee66ea0e97450ac793e...
https://bugs.winehq.org/show_bug.cgi?id=44818
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.6.
https://bugs.winehq.org/show_bug.cgi?id=44818
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |3.0.x
https://bugs.winehq.org/show_bug.cgi?id=44818
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.0.x |---
--- Comment #3 from Michael Stefaniuc mstefani@winehq.org --- Removing the 3.0.x milestone from bugs included in 3.0.2.