Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
73a28110
Commit
73a28110
authored
Jul 05, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Get rid of the almost empty directory.c.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d4509765
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
101 deletions
+52
-101
Makefile.in
dlls/ntdll/Makefile.in
+0
-1
directory.c
dlls/ntdll/directory.c
+0
-100
path.c
dlls/ntdll/path.c
+19
-0
process.c
dlls/ntdll/process.c
+33
-0
No files found.
dlls/ntdll/Makefile.in
View file @
73a28110
...
@@ -12,7 +12,6 @@ C_SRCS = \
...
@@ -12,7 +12,6 @@ C_SRCS = \
critsection.c
\
critsection.c
\
crypt.c
\
crypt.c
\
debugbuffer.c
\
debugbuffer.c
\
directory.c
\
env.c
\
env.c
\
error.c
\
error.c
\
exception.c
\
exception.c
\
...
...
dlls/ntdll/directory.c
deleted
100644 → 0
View file @
d4509765
/*
* NTDLL directory functions
*
* Copyright 1993 Erik Bos
* Copyright 2003 Eric Pouech
* Copyright 1996, 2004 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include <sys/types.h>
#include <fcntl.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "ntstatus.h"
#define WIN32_NO_STATUS
#define NONAMELESSUNION
#include "windef.h"
#include "winnt.h"
#include "winternl.h"
#include "ddk/wdm.h"
#include "ntdll_misc.h"
#include "wine/list.h"
#include "wine/debug.h"
#include "wine/exception.h"
/******************************************************************
* RtlWow64EnableFsRedirection (NTDLL.@)
*/
NTSTATUS
WINAPI
RtlWow64EnableFsRedirection
(
BOOLEAN
enable
)
{
if
(
!
NtCurrentTeb64
())
return
STATUS_NOT_IMPLEMENTED
;
NtCurrentTeb64
()
->
TlsSlots
[
WOW64_TLS_FILESYSREDIR
]
=
!
enable
;
return
STATUS_SUCCESS
;
}
/******************************************************************
* RtlWow64EnableFsRedirectionEx (NTDLL.@)
*/
NTSTATUS
WINAPI
RtlWow64EnableFsRedirectionEx
(
ULONG
disable
,
ULONG
*
old_value
)
{
if
(
!
NtCurrentTeb64
())
return
STATUS_NOT_IMPLEMENTED
;
__TRY
{
*
old_value
=
NtCurrentTeb64
()
->
TlsSlots
[
WOW64_TLS_FILESYSREDIR
];
}
__EXCEPT_PAGE_FAULT
{
return
STATUS_ACCESS_VIOLATION
;
}
__ENDTRY
NtCurrentTeb64
()
->
TlsSlots
[
WOW64_TLS_FILESYSREDIR
]
=
disable
;
return
STATUS_SUCCESS
;
}
/******************************************************************
* RtlDoesFileExists_U (NTDLL.@)
*/
BOOLEAN
WINAPI
RtlDoesFileExists_U
(
LPCWSTR
file_name
)
{
UNICODE_STRING
nt_name
;
FILE_BASIC_INFORMATION
basic_info
;
OBJECT_ATTRIBUTES
attr
;
BOOLEAN
ret
;
if
(
!
RtlDosPathNameToNtPathName_U
(
file_name
,
&
nt_name
,
NULL
,
NULL
))
return
FALSE
;
attr
.
Length
=
sizeof
(
attr
);
attr
.
RootDirectory
=
0
;
attr
.
ObjectName
=
&
nt_name
;
attr
.
Attributes
=
OBJ_CASE_INSENSITIVE
;
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityQualityOfService
=
NULL
;
ret
=
NtQueryAttributesFile
(
&
attr
,
&
basic_info
)
==
STATUS_SUCCESS
;
RtlFreeUnicodeString
(
&
nt_name
);
return
ret
;
}
dlls/ntdll/path.c
View file @
73a28110
...
@@ -768,6 +768,25 @@ DWORD WINAPI RtlGetLongestNtPathLength(void)
...
@@ -768,6 +768,25 @@ DWORD WINAPI RtlGetLongestNtPathLength(void)
return
MAX_NT_PATH_LENGTH
;
return
MAX_NT_PATH_LENGTH
;
}
}
/******************************************************************
* RtlDoesFileExists_U (NTDLL.@)
*/
BOOLEAN
WINAPI
RtlDoesFileExists_U
(
LPCWSTR
file_name
)
{
UNICODE_STRING
nt_name
;
FILE_BASIC_INFORMATION
basic_info
;
OBJECT_ATTRIBUTES
attr
;
NTSTATUS
status
;
if
(
!
RtlDosPathNameToNtPathName_U
(
file_name
,
&
nt_name
,
NULL
,
NULL
))
return
FALSE
;
InitializeObjectAttributes
(
&
attr
,
&
nt_name
,
OBJ_CASE_INSENSITIVE
,
0
,
NULL
);
status
=
NtQueryAttributesFile
(
&
attr
,
&
basic_info
);
RtlFreeUnicodeString
(
&
nt_name
);
return
!
status
;
}
/******************************************************************
/******************************************************************
* RtlIsNameLegalDOS8Dot3 (NTDLL.@)
* RtlIsNameLegalDOS8Dot3 (NTDLL.@)
*
*
...
...
dlls/ntdll/process.c
View file @
73a28110
...
@@ -49,6 +49,39 @@ PEB * WINAPI RtlGetCurrentPeb(void)
...
@@ -49,6 +49,39 @@ PEB * WINAPI RtlGetCurrentPeb(void)
}
}
/******************************************************************
* RtlWow64EnableFsRedirection (NTDLL.@)
*/
NTSTATUS
WINAPI
RtlWow64EnableFsRedirection
(
BOOLEAN
enable
)
{
if
(
!
NtCurrentTeb64
())
return
STATUS_NOT_IMPLEMENTED
;
NtCurrentTeb64
()
->
TlsSlots
[
WOW64_TLS_FILESYSREDIR
]
=
!
enable
;
return
STATUS_SUCCESS
;
}
/******************************************************************
* RtlWow64EnableFsRedirectionEx (NTDLL.@)
*/
NTSTATUS
WINAPI
RtlWow64EnableFsRedirectionEx
(
ULONG
disable
,
ULONG
*
old_value
)
{
if
(
!
NtCurrentTeb64
())
return
STATUS_NOT_IMPLEMENTED
;
__TRY
{
*
old_value
=
NtCurrentTeb64
()
->
TlsSlots
[
WOW64_TLS_FILESYSREDIR
];
}
__EXCEPT_PAGE_FAULT
{
return
STATUS_ACCESS_VIOLATION
;
}
__ENDTRY
NtCurrentTeb64
()
->
TlsSlots
[
WOW64_TLS_FILESYSREDIR
]
=
disable
;
return
STATUS_SUCCESS
;
}
/**********************************************************************
/**********************************************************************
* RtlWow64GetCurrentMachine (NTDLL.@)
* RtlWow64GetCurrentMachine (NTDLL.@)
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment