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
ea5249fe
Commit
ea5249fe
authored
Dec 08, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add some more tests for FILE_ATTRIBUTE_REPARSE_POINT.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c84fd7cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
volume.c
dlls/kernel32/tests/volume.c
+31
-0
No files found.
dlls/kernel32/tests/volume.c
View file @
ea5249fe
...
...
@@ -1268,6 +1268,33 @@ static void test_mounted_folder(void)
HANDLE
file
;
DWORD
size
;
file
=
CreateFileA
(
"C:
\\
"
,
0
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
FILE_FLAG_BACKUP_SEMANTICS
|
FILE_FLAG_OPEN_REPARSE_POINT
,
NULL
);
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"got error %u
\n
"
,
GetLastError
());
status
=
NtQueryInformationFile
(
file
,
&
io
,
&
info
,
sizeof
(
info
),
FileAttributeTagInformation
);
ok
(
!
status
,
"got status %#x
\n
"
,
status
);
ok
(
!
(
info
.
FileAttributes
&
FILE_ATTRIBUTE_REPARSE_POINT
)
&&
(
info
.
FileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
),
"got attributes %#x
\n
"
,
info
.
FileAttributes
);
ok
(
!
info
.
ReparseTag
,
"got reparse tag %#x
\n
"
,
info
.
ReparseTag
);
CloseHandle
(
file
);
file
=
CreateFileA
(
"C:
\\
"
,
0
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
FILE_FLAG_BACKUP_SEMANTICS
,
NULL
);
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"got error %u
\n
"
,
GetLastError
());
status
=
NtQueryInformationFile
(
file
,
&
io
,
&
info
,
sizeof
(
info
),
FileAttributeTagInformation
);
ok
(
!
status
,
"got status %#x
\n
"
,
status
);
ok
(
!
(
info
.
FileAttributes
&
FILE_ATTRIBUTE_REPARSE_POINT
)
&&
(
info
.
FileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
),
"got attributes %#x
\n
"
,
info
.
FileAttributes
);
ok
(
!
info
.
ReparseTag
,
"got reparse tag %#x
\n
"
,
info
.
ReparseTag
);
CloseHandle
(
file
);
ret
=
GetFileAttributesA
(
"C:
\\
"
);
ok
(
!
(
ret
&
FILE_ATTRIBUTE_REPARSE_POINT
)
&&
(
ret
&
FILE_ATTRIBUTE_DIRECTORY
),
"got attributes %#x
\n
"
,
ret
);
ret
=
CreateDirectoryA
(
"C:
\\
winetest_mnt"
,
NULL
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_ACCESS_DENIED
)
{
...
...
@@ -1324,6 +1351,10 @@ static void test_mounted_folder(void)
CloseHandle
(
file
);
ret
=
GetFileAttributesA
(
"C:
\\
winetest_mnt"
);
ok
(
ret
!=
INVALID_FILE_ATTRIBUTES
,
"got error %u
\n
"
,
GetLastError
());
ok
((
ret
&
FILE_ATTRIBUTE_REPARSE_POINT
)
&&
(
ret
&
FILE_ATTRIBUTE_DIRECTORY
),
"got attributes %#x
\n
"
,
ret
);
file
=
CreateFileA
(
"C:
\\
winetest_mnt
\\
windows"
,
0
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
FILE_FLAG_BACKUP_SEMANTICS
,
NULL
);
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"got error %u
\n
"
,
GetLastError
());
...
...
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