https://bugs.winehq.org/show_bug.cgi?id=55839
Bug ID: 55839 Summary: NtCreateSymbolicLinkObject fails with STATUS_OBJECT_TYPE_MISMATCH Product: Wine Version: 8.18 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: ake.rehnman@gmail.com Distribution: ---
Created attachment 75338 --> https://bugs.winehq.org/attachment.cgi?id=75338 Test program using NtCreateSymbolicLinkObject
When trying to create a symbolic link object with an already existing link NtCreateSymbolicLinkObject returns STATUS_OBJECT_TYPE_MISMATCH regardless if OBJ_OPENIF flag is passed or not.
NtCreateSymbolicLinkObject in Windows 10 returns STATUS_OBJECT_NAME_COLLISION if no flag is set and STATUS_SUCCESS otherwise.
The attached test program output with wine: NtCreateDirectoryObject status=0 NtCreateSymbolicLinkObject status=0 NtCreateSymbolicLinkObject status=c000003a NtCreateSymbolicLinkObject failed expected STATUS_OBJECT_NAME_COLLISION NtCreateSymbolicLinkObject status=c000003a NtCreateSymbolicLinkObject failed expected STATUS_SUCCESS
Console output with windows 10: NtCreateDirectoryObject status=0 NtCreateSymbolicLinkObject status=0 NtCreateSymbolicLinkObject status=c0000035 NtCreateSymbolicLinkObject status=0
https://bugs.winehq.org/show_bug.cgi?id=55839
ake.rehnman@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #75338|0 |1 is obsolete| |
--- Comment #1 from ake.rehnman@gmail.com --- Created attachment 75341 --> https://bugs.winehq.org/attachment.cgi?id=75341 Test program #2 using NtCreateSymbolicLinkObject
https://bugs.winehq.org/show_bug.cgi?id=55839
--- Comment #2 from ake.rehnman@gmail.com --- The previous example did not show the problem properly since I managed upload the wrong test code. Find the revised test code #2 above.
The attached test program #2 output with wine: NtCreateDirectoryObject status=0 NtCreateSymbolicLinkObject status=0 NtCreateSymbolicLinkObject status=c0000035 NtCreateSymbolicLinkObject status=c0000024 NtCreateSymbolicLinkObject failed expected STATUS_SUCCESS
Console output with windows 10: NtCreateDirectoryObject status=0 NtCreateSymbolicLinkObject status=0 NtCreateSymbolicLinkObject status=c0000035 NtCreateSymbolicLinkObject status=0 Test passed
https://bugs.winehq.org/show_bug.cgi?id=55839
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |afb16d3ee2cdbc5c7fc6119fa9c | |805ca0611baa6 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- It should be fixed by afb16d3ee2cdbc5c7fc6119fa9c805ca0611baa6.
https://bugs.winehq.org/show_bug.cgi?id=55839
ake.rehnman@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from ake.rehnman@gmail.com --- Patch seem to work.
https://bugs.winehq.org/show_bug.cgi?id=55839
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |RESOLVED
https://bugs.winehq.org/show_bug.cgi?id=55839
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.20.