Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
d18249dd
Commit
d18249dd
authored
Jan 20, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust/tests: Check file attributes set by CryptCATAdminAddCatalog.
parent
d4cf5a55
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
crypt.c
dlls/wintrust/tests/crypt.c
+12
-0
No files found.
dlls/wintrust/tests/crypt.c
View file @
d18249dd
...
...
@@ -522,6 +522,11 @@ static void test_CryptCATAdminAddRemoveCatalog(void)
memset
(
catfileW
,
0
,
sizeof
(
catfileW
));
MultiByteToWideChar
(
0
,
0
,
p
,
-
1
,
catfileW
,
MAX_PATH
);
/* Set the file attributes so we can check what happens with them during the 'copy' */
attrs
=
FILE_ATTRIBUTE_READONLY
;
ret
=
SetFileAttributesA
(
tmpfile
,
attrs
);
ok
(
ret
,
"SetFileAttributesA failed : %u
\n
"
,
GetLastError
());
/* winetest.cat will be created */
hcatinfo
=
pCryptCATAdminAddCatalog
(
hcatadmin
,
tmpfileW
,
basenameW
,
0
);
ok
(
hcatinfo
!=
NULL
,
"CryptCATAdminAddCatalog failed %u
\n
"
,
GetLastError
());
...
...
@@ -530,6 +535,10 @@ static void test_CryptCATAdminAddRemoveCatalog(void)
lstrcatA
(
catfilepath
,
"
\\
{DEADBEEF-DEAD-BEEF-DEAD-BEEFDEADBEEF}
\\
winetest.cat"
);
attrs
=
GetFileAttributes
(
catfilepath
);
ok
(
attrs
!=
INVALID_FILE_ATTRIBUTES
,
"Expected %s to exist
\n
"
,
catfilepath
);
todo_wine
ok
(
attrs
==
FILE_ATTRIBUTE_SYSTEM
||
attrs
==
(
FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
|
FILE_ATTRIBUTE_SYSTEM
),
/* Vista */
"File has wrong attributes : %08x
\n
"
,
attrs
);
info
.
cbStruct
=
sizeof
(
info
);
info
.
wszCatalogFile
[
0
]
=
0
;
...
...
@@ -563,6 +572,9 @@ static void test_CryptCATAdminAddRemoveCatalog(void)
ret
=
pCryptCATAdminReleaseContext
(
hcatadmin
,
0
);
ok
(
ret
,
"CryptCATAdminReleaseContext failed %u
\n
"
,
GetLastError
());
/* Set the attributes so we can delete the file */
attrs
=
FILE_ATTRIBUTE_NORMAL
;
ret
=
SetFileAttributesA
(
tmpfile
,
attrs
);
DeleteFileA
(
tmpfile
);
}
...
...
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