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
4b7877d7
Commit
4b7877d7
authored
Oct 10, 2006
by
Michael Ploujnikov
Committed by
Alexandre Julliard
Oct 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32/tests: Win64 printf format warning fixes.
parent
b6a9109c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
40 deletions
+39
-40
Makefile.in
dlls/secur32/tests/Makefile.in
+0
-1
main.c
dlls/secur32/tests/main.c
+6
-6
ntlm.c
dlls/secur32/tests/ntlm.c
+1
-1
schannel.c
dlls/secur32/tests/schannel.c
+30
-30
secur32.c
dlls/secur32/tests/secur32.c
+2
-2
No files found.
dlls/secur32/tests/Makefile.in
View file @
4b7877d7
...
@@ -4,7 +4,6 @@ SRCDIR = @srcdir@
...
@@ -4,7 +4,6 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
secur32.dll
TESTDLL
=
secur32.dll
IMPORTS
=
crypt32 advapi32 kernel32
IMPORTS
=
crypt32 advapi32 kernel32
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
CTESTS
=
\
CTESTS
=
\
main.c
\
main.c
\
...
...
dlls/secur32/tests/main.c
View file @
4b7877d7
...
@@ -98,7 +98,7 @@ static const char* getSecError(SECURITY_STATUS status)
...
@@ -98,7 +98,7 @@ static const char* getSecError(SECURITY_STATUS status)
_SEC_ERR
(
SEC_E_NO_CREDENTIALS
);
_SEC_ERR
(
SEC_E_NO_CREDENTIALS
);
_SEC_ERR
(
SEC_E_OUT_OF_SEQUENCE
);
_SEC_ERR
(
SEC_E_OUT_OF_SEQUENCE
);
default:
default:
sprintf
(
buf
,
"%08
l
x
\n
"
,
status
);
sprintf
(
buf
,
"%08x
\n
"
,
status
);
return
buf
;
return
buf
;
}
}
#undef _SEC_ERR
#undef _SEC_ERR
...
@@ -140,18 +140,18 @@ static void testEnumerateSecurityPackages(void)
...
@@ -140,18 +140,18 @@ static void testEnumerateSecurityPackages(void)
sec_status
=
pEnumerateSecurityPackagesA
(
&
num_packages
,
&
pkg_info
);
sec_status
=
pEnumerateSecurityPackagesA
(
&
num_packages
,
&
pkg_info
);
ok
(
sec_status
==
SEC_E_OK
,
ok
(
sec_status
==
SEC_E_OK
,
"EnumerateSecurityPackages() should return %
ld, not %08l
x
\n
"
,
"EnumerateSecurityPackages() should return %
d, not %08
x
\n
"
,
(
LONG
)
SEC_E_OK
,
(
LONG
)
sec_status
);
SEC_E_OK
,
sec_status
);
ok
(
num_packages
>
0
,
"Number of sec packages should be > 0 ,but is %
l
d
\n
"
,
ok
(
num_packages
>
0
,
"Number of sec packages should be > 0 ,but is %d
\n
"
,
num_packages
);
num_packages
);
ok
(
pkg_info
!=
NULL
,
ok
(
pkg_info
!=
NULL
,
"pkg_info should not be NULL after EnumerateSecurityPackages
\n
"
);
"pkg_info should not be NULL after EnumerateSecurityPackages
\n
"
);
trace
(
"Number of packages: %
l
d
\n
"
,
num_packages
);
trace
(
"Number of packages: %d
\n
"
,
num_packages
);
for
(
i
=
0
;
i
<
num_packages
;
++
i
){
for
(
i
=
0
;
i
<
num_packages
;
++
i
){
trace
(
"%
l
d: Package
\"
%s
\"\n
"
,
i
,
pkg_info
[
i
].
Name
);
trace
(
"%d: Package
\"
%s
\"\n
"
,
i
,
pkg_info
[
i
].
Name
);
trace
(
"Supported flags:
\n
"
);
trace
(
"Supported flags:
\n
"
);
if
(
pkg_info
[
i
].
fCapabilities
&
SECPKG_FLAG_INTEGRITY
)
if
(
pkg_info
[
i
].
fCapabilities
&
SECPKG_FLAG_INTEGRITY
)
trace
(
"
\t
SECPKG_FLAG_INTEGRITY
\n
"
);
trace
(
"
\t
SECPKG_FLAG_INTEGRITY
\n
"
);
...
...
dlls/secur32/tests/ntlm.c
View file @
4b7877d7
...
@@ -179,7 +179,7 @@ static const char* getSecError(SECURITY_STATUS status)
...
@@ -179,7 +179,7 @@ static const char* getSecError(SECURITY_STATUS status)
_SEC_ERR
(
SEC_E_OUT_OF_SEQUENCE
);
_SEC_ERR
(
SEC_E_OUT_OF_SEQUENCE
);
_SEC_ERR
(
SEC_E_MESSAGE_ALTERED
);
_SEC_ERR
(
SEC_E_MESSAGE_ALTERED
);
default:
default:
sprintf
(
buf
,
"%08
l
x
\n
"
,
status
);
sprintf
(
buf
,
"%08x
\n
"
,
status
);
return
buf
;
return
buf
;
}
}
#undef _SEC_ERR
#undef _SEC_ERR
...
...
dlls/secur32/tests/schannel.c
View file @
4b7877d7
This diff is collapsed.
Click to expand it.
dlls/secur32/tests/secur32.c
View file @
4b7877d7
...
@@ -53,7 +53,7 @@ static void testGetComputerObjectNameA(void)
...
@@ -53,7 +53,7 @@ static void testGetComputerObjectNameA(void)
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
))
||
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
))
||
(
GetLastError
()
==
ERROR_CANT_ACCESS_DOMAIN_INFO
)
||
(
GetLastError
()
==
ERROR_CANT_ACCESS_DOMAIN_INFO
)
||
(
GetLastError
()
==
ERROR_NO_SUCH_DOMAIN
),
(
GetLastError
()
==
ERROR_NO_SUCH_DOMAIN
),
"GetComputerObjectNameA(%d) failed: %
l
d
\n
"
,
"GetComputerObjectNameA(%d) failed: %d
\n
"
,
formats
[
i
],
GetLastError
());
formats
[
i
],
GetLastError
());
if
(
rc
)
if
(
rc
)
trace
(
"GetComputerObjectNameA() returned %s
\n
"
,
name
);
trace
(
"GetComputerObjectNameA() returned %s
\n
"
,
name
);
...
@@ -75,7 +75,7 @@ static void testGetComputerObjectNameW(void)
...
@@ -75,7 +75,7 @@ static void testGetComputerObjectNameW(void)
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
))
||
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
))
||
(
GetLastError
()
==
ERROR_CANT_ACCESS_DOMAIN_INFO
)
||
(
GetLastError
()
==
ERROR_CANT_ACCESS_DOMAIN_INFO
)
||
(
GetLastError
()
==
ERROR_NO_SUCH_DOMAIN
),
(
GetLastError
()
==
ERROR_NO_SUCH_DOMAIN
),
"GetComputerObjectNameW(%d) failed: %
l
d
\n
"
,
"GetComputerObjectNameW(%d) failed: %d
\n
"
,
formats
[
i
],
GetLastError
());
formats
[
i
],
GetLastError
());
if
(
rc
)
{
if
(
rc
)
{
char
name
[
256
];
char
name
[
256
];
...
...
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