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
640dd17a
Commit
640dd17a
authored
Oct 17, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust/tests: Compile with -D__WINESRC__.
parent
df62b94c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Makefile.in
dlls/wintrust/tests/Makefile.in
+0
-1
crypt.c
dlls/wintrust/tests/crypt.c
+8
-7
No files found.
dlls/wintrust/tests/Makefile.in
View file @
640dd17a
TESTDLL
=
wintrust.dll
IMPORTS
=
wintrust crypt32 advapi32
EXTRADEFS
=
-U__WINESRC__
-DWINE_STRICT_PROTOTYPES
-DWINE_NO_NAMELESS_EXTENSION
-DWIDL_C_INLINE_WRAPPERS
C_SRCS
=
\
asn.c
\
...
...
dlls/wintrust/tests/crypt.c
View file @
640dd17a
...
...
@@ -23,6 +23,7 @@
#include <stdio.h>
#include "windows.h"
#include "wincrypt.h"
#include "mscat.h"
#include "wine/test.h"
...
...
@@ -251,23 +252,23 @@ static void test_context(void)
}
ok
(
hca
!=
NULL
,
"Expected a context handle, got NULL
\n
"
);
attrs
=
GetFileAttributes
(
catroot
);
attrs
=
GetFileAttributes
A
(
catroot
);
ok
(
attrs
!=
INVALID_FILE_ATTRIBUTES
,
"Expected the CatRoot directory to exist
\n
"
);
/* Windows creates the GUID directory in capitals */
lstrcpyA
(
dummydir
,
catroot
);
lstrcatA
(
dummydir
,
"
\\
{DEADBEEF-DEAD-BEEF-DEAD-BEEFDEADBEEF}"
);
attrs
=
GetFileAttributes
(
dummydir
);
attrs
=
GetFileAttributes
A
(
dummydir
);
ok
(
attrs
!=
INVALID_FILE_ATTRIBUTES
,
"Expected CatRoot
\\
{DEADBEEF-DEAD-BEEF-DEAD-BEEFDEADBEEF} directory to exist
\n
"
);
/* Only present on XP or higher. */
attrs
=
GetFileAttributes
(
catroot2
);
attrs
=
GetFileAttributes
A
(
catroot2
);
if
(
attrs
!=
INVALID_FILE_ATTRIBUTES
)
{
lstrcpyA
(
dummydir
,
catroot2
);
lstrcatA
(
dummydir
,
"
\\
{DEADBEEF-DEAD-BEEF-DEAD-BEEFDEADBEEF}"
);
attrs
=
GetFileAttributes
(
dummydir
);
attrs
=
GetFileAttributes
A
(
dummydir
);
ok
(
attrs
!=
INVALID_FILE_ATTRIBUTES
,
"Expected CatRoot2
\\
{DEADBEEF-DEAD-BEEF-DEAD-BEEFDEADBEEF} directory to exist
\n
"
);
}
...
...
@@ -589,7 +590,7 @@ static void test_CryptCATAdminAddRemoveCatalog(void)
lstrcpyA
(
catfilepath
,
catroot
);
lstrcatA
(
catfilepath
,
"
\\
{DEADBEEF-DEAD-BEEF-DEAD-BEEFDEADBEEF}
\\
winetest.cat"
);
attrs
=
GetFileAttributes
(
catfilepath
);
attrs
=
GetFileAttributes
A
(
catfilepath
);
ok
(
attrs
!=
INVALID_FILE_ATTRIBUTES
,
"Expected %s to exist
\n
"
,
catfilepath
);
todo_wine
ok
(
attrs
==
FILE_ATTRIBUTE_SYSTEM
||
...
...
@@ -617,12 +618,12 @@ static void test_CryptCATAdminAddRemoveCatalog(void)
ret
=
pCryptCATAdminRemoveCatalog
(
hcatadmin
,
info
.
wszCatalogFile
,
0
);
ok
(
ret
,
"CryptCATAdminRemoveCatalog failed %u
\n
"
,
GetLastError
());
/* The call succeeded with the full path but the file is not removed */
attrs
=
GetFileAttributes
(
catfilepath
);
attrs
=
GetFileAttributes
A
(
catfilepath
);
ok
(
attrs
!=
INVALID_FILE_ATTRIBUTES
,
"Expected %s to exist
\n
"
,
catfilepath
);
/* Given only the filename the file is removed */
ret
=
pCryptCATAdminRemoveCatalog
(
hcatadmin
,
basenameW
,
0
);
ok
(
ret
,
"CryptCATAdminRemoveCatalog failed %u
\n
"
,
GetLastError
());
attrs
=
GetFileAttributes
(
catfilepath
);
attrs
=
GetFileAttributes
A
(
catfilepath
);
ok
(
attrs
==
INVALID_FILE_ATTRIBUTES
,
"Expected %s to be removed
\n
"
,
catfilepath
);
cleanup:
...
...
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