[NTDLL] Some style changes for RtlNtPathNameToDosPathName as suggested by Thomas...
authorMark Jansen <mark.jansen@reactos.org>
Thu, 2 Mar 2017 21:51:22 +0000 (21:51 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Thu, 2 Mar 2017 21:51:22 +0000 (21:51 +0000)
svn path=/trunk/; revision=74032

reactos/sdk/include/ndk/rtlfuncs.h
reactos/sdk/lib/rtl/path.c
rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c

index 82152c7..8060310 100644 (file)
@@ -2828,9 +2828,9 @@ NTSTATUS
 NTAPI
 RtlNtPathNameToDosPathName(
     _In_ ULONG Flags,
-    _Inout_ RTL_UNICODE_STRING_BUFFER* Path,
-    _Out_opt_ ULONG* PathType,
-    _Out_opt_ ULONG* Unknown
+    _Inout_ PRTL_UNICODE_STRING_BUFFER Path,
+    _Out_opt_ PULONG PathType,
+    _Out_opt_ PULONG Unknown
 );
 
 
index 4ef4ed4..b52b24c 100644 (file)
@@ -1792,9 +1792,9 @@ RtlDosPathNameToRelativeNtPathName_U_WithStatus(IN PCWSTR DosName,
  * @implemented
  */
 NTSTATUS NTAPI RtlNtPathNameToDosPathName(IN ULONG Flags,
-                                          IN OUT RTL_UNICODE_STRING_BUFFER* Path,
-                                          OUT ULONG* PathType,
-                                          ULONG* Unknown)
+                                          IN OUT PRTL_UNICODE_STRING_BUFFER Path,
+                                          OUT PULONG PathType,
+                                          PULONG Unknown)
 {
     PCUNICODE_STRING UsePrefix = NULL, AlternatePrefix = NULL;
 
@@ -1812,7 +1812,7 @@ NTSTATUS NTAPI RtlNtPathNameToDosPathName(IN ULONG Flags,
         if (PathType)
             *PathType = RTL_CONVERTED_UNC_PATH;
     }
-    else if (RtlPrefixUnicodeString(&RtlpDosDevicesPrefix, &Path->String, TRUE))
+    else if (RtlPrefixUnicodeString(&RtlpDosDevicesPrefix, &Path->String, FALSE))
     {
         UsePrefix = &RtlpDosDevicesPrefix;
         if (PathType)
index 7bb1f5f..7cf99f5 100644 (file)
@@ -10,7 +10,7 @@
 #define WIN32_NO_STATUS
 #include <ndk/rtlfuncs.h>
 
-NTSTATUS (NTAPI *pRtlNtPathNameToDosPathName)(ULONG Flags, RTL_UNICODE_STRING_BUFFER* Path, ULONG* Type, ULONG* Unknown4);
+NTSTATUS (NTAPI *pRtlNtPathNameToDosPathName)(ULONG Flags, PRTL_UNICODE_STRING_BUFFER Path, PULONG Type, PULONG Unknown4);
 
 #define ok_hex_(expression, result) \
     do { \