[ntdll/om.c] Don't return success when it's not.

Paul Vriens Paul.Vriens at xs4all.nl
Wed Jun 22 13:41:28 CDT 2005


Hi,

I changed NtOpenSymbolicLinkObject to return
STATUS_OBJECT_NAME_NOT_FOUND instead of 0 to prevent subsequent calls to
use a wrong handle. STATUS_OBJECT_NAME_NOT_FOUND is what Windows gives
when asking for example for \DosDevices\CC:

Changelog
  Return STATUS_OBJECT_NAME_NOT_FOUND (until implemented)

Cheers,

Paul

Index: dlls/ntdll/om.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/om.c,v
retrieving revision 1.33
diff -u -p -r1.33 om.c
--- dlls/ntdll/om.c     21 Jun 2005 09:52:41 -0000      1.33
+++ dlls/ntdll/om.c     22 Jun 2005 18:35:57 -0000
@@ -437,7 +437,7 @@ NTSTATUS WINAPI NtOpenSymbolicLinkObject
        FIXME("(%p,0x%08lx,%p) stub\n",
        LinkHandle, DesiredAccess, ObjectAttributes);
        dump_ObjectAttributes(ObjectAttributes);
-       return 0;
+        return STATUS_OBJECT_NAME_NOT_FOUND;
 }
  

/******************************************************************************




More information about the wine-patches mailing list