Author: mjansen
Date: Thu Mar 2 21:51:22 2017
New Revision: 74032
URL:
http://svn.reactos.org/svn/reactos?rev=74032&view=rev
Log:
[NTDLL] Some style changes for RtlNtPathNameToDosPathName as suggested by Thomas and
Hermes. CORE-12847
Modified:
trunk/reactos/sdk/include/ndk/rtlfuncs.h
trunk/reactos/sdk/lib/rtl/path.c
trunk/rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c
Modified: trunk/reactos/sdk/include/ndk/rtlfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/ndk/rtlfuncs.h…
==============================================================================
--- trunk/reactos/sdk/include/ndk/rtlfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/include/ndk/rtlfuncs.h [iso-8859-1] Thu Mar 2 21:51:22 2017
@@ -2828,9 +2828,9 @@
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
);
Modified: trunk/reactos/sdk/lib/rtl/path.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/rtl/path.c?rev=740…
==============================================================================
--- trunk/reactos/sdk/lib/rtl/path.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/rtl/path.c [iso-8859-1] Thu Mar 2 21:51:22 2017
@@ -1792,9 +1792,9 @@
* @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 @@
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)
Modified: trunk/rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/ntdll/RtlNtPathN…
==============================================================================
--- trunk/rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c [iso-8859-1] Thu Mar 2
21:51:22 2017
@@ -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 { \