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