mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
[KERNEL32-RTL]
Fix return type and usage of RtlDetermineDosPathNameType_U, and use the declaration of RTL_PATH_TYPE in winternl.h instead of the wineism DOS_PATHNAME_TYPE. See r59183 and 59184 for more information. svn path=/trunk/; revision=59185
This commit is contained in:
parent
d93b910537
commit
6922a068e7
4 changed files with 15 additions and 15 deletions
|
@ -762,7 +762,7 @@ static BOOL PROFILE_Open( LPCWSTR filename, BOOL write_access )
|
|||
if (!filename)
|
||||
filename = wininiW;
|
||||
|
||||
if ((RtlDetermineDosPathNameType_U(filename) == RELATIVE_PATH) &&
|
||||
if ((RtlDetermineDosPathNameType_U(filename) == RtlPathTypeRelative) &&
|
||||
!strchrW(filename, '\\') && !strchrW(filename, '/'))
|
||||
{
|
||||
static const WCHAR wszSeparator[] = {'\\', 0};
|
||||
|
|
|
@ -2617,7 +2617,7 @@ RtlDoesFileExists_U(
|
|||
);
|
||||
|
||||
NTSYSAPI
|
||||
ULONG
|
||||
RTL_PATH_TYPE
|
||||
NTAPI
|
||||
RtlDetermineDosPathNameType_U(
|
||||
_In_ PCWSTR Path
|
||||
|
|
|
@ -861,18 +861,18 @@ typedef struct _TIMER_BASIC_INFORMATION
|
|||
} TIMER_BASIC_INFORMATION, *PTIMER_BASIC_INFORMATION;
|
||||
|
||||
|
||||
/* return type of RtlDetermineDosPathNameType_U (FIXME: not the correct names) */
|
||||
typedef enum
|
||||
/* Return type of RtlDetermineDosPathNameType_U */
|
||||
typedef enum _RTL_PATH_TYPE
|
||||
{
|
||||
INVALID_PATH = 0,
|
||||
UNC_PATH, /* "//foo" */
|
||||
ABSOLUTE_DRIVE_PATH, /* "c:/foo" */
|
||||
RELATIVE_DRIVE_PATH, /* "c:foo" */
|
||||
ABSOLUTE_PATH, /* "/foo" */
|
||||
RELATIVE_PATH, /* "foo" */
|
||||
DEVICE_PATH, /* "//./foo" */
|
||||
UNC_DOT_PATH /* "//." */
|
||||
} DOS_PATHNAME_TYPE;
|
||||
RtlPathTypeUnknown,
|
||||
RtlPathTypeUncAbsolute,
|
||||
RtlPathTypeDriveAbsolute,
|
||||
RtlPathTypeDriveRelative,
|
||||
RtlPathTypeRooted,
|
||||
RtlPathTypeRelative,
|
||||
RtlPathTypeLocalDevice,
|
||||
RtlPathTypeRootLocalDevice,
|
||||
} RTL_PATH_TYPE;
|
||||
|
||||
/***********************************************************************
|
||||
* IA64 specific types and data structures
|
||||
|
@ -2130,7 +2130,7 @@ NTSTATUS WINAPI RtlDestroyHandleTable(RTL_HANDLE_TABLE *);
|
|||
HANDLE WINAPI RtlDestroyHeap(HANDLE);
|
||||
void WINAPI RtlDestroyProcessParameters(RTL_USER_PROCESS_PARAMETERS*);
|
||||
NTSTATUS WINAPI RtlDestroyQueryDebugBuffer(PDEBUG_BUFFER);
|
||||
DOS_PATHNAME_TYPE WINAPI RtlDetermineDosPathNameType_U(PCWSTR);
|
||||
RTL_PATH_TYPE WINAPI RtlDetermineDosPathNameType_U(PCWSTR);
|
||||
BOOLEAN WINAPI RtlDoesFileExists_U(LPCWSTR);
|
||||
BOOLEAN WINAPI RtlDosPathNameToNtPathName_U(PCWSTR,PUNICODE_STRING,PCWSTR*,CURDIR*);
|
||||
ULONG WINAPI RtlDosSearchPath_U(LPCWSTR, LPCWSTR, LPCWSTR, ULONG, LPWSTR, LPWSTR*);
|
||||
|
|
|
@ -867,7 +867,7 @@ RtlGetLongestNtPathLength(VOID)
|
|||
/*
|
||||
* @implemented
|
||||
*/
|
||||
ULONG
|
||||
RTL_PATH_TYPE
|
||||
NTAPI
|
||||
RtlDetermineDosPathNameType_U(IN PCWSTR Path)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue