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
b3db514c
Commit
b3db514c
authored
Jun 05, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust/tests: Fix test on win9x.
parent
f684dac0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
softpub.c
dlls/wintrust/tests/softpub.c
+9
-6
No files found.
dlls/wintrust/tests/softpub.c
View file @
b3db514c
...
...
@@ -27,6 +27,7 @@
#include <softpub.h>
#include <mssip.h>
#include <winuser.h>
#include "winnls.h"
#include "wine/test.h"
...
...
@@ -250,9 +251,9 @@ static void testObjTrust(SAFE_PROVIDER_FUNCTIONS *funcs, GUID *actionID)
funcs
->
pfnAlloc
(
TRUSTERROR_MAX_STEPS
*
sizeof
(
DWORD
));
if
(
data
.
padwTrustStepErrors
)
{
static
const
WCHAR
notepad
[]
=
{
'\\'
,
'n'
,
'o'
,
't'
,
'e'
,
'p'
,
'a'
,
'd'
,
'.'
,
'e'
,
'x'
,
'e'
,
0
}
;
WCHAR
notepadPath
[
MAX_PATH
];
static
const
CHAR
notepad
[]
=
"
\\
notepad.exe"
;
CHAR
notepadPath
[
MAX_PATH
]
;
WCHAR
notepadPath
W
[
MAX_PATH
];
PROVDATA_SIP
provDataSIP
=
{
0
};
static
const
GUID
unknown
=
{
0xC689AAB8
,
0x8E78
,
0x11D0
,
{
0x8C
,
0x47
,
0x00
,
0xC0
,
0x4F
,
0xC2
,
0x95
,
0xEE
}
};
...
...
@@ -285,9 +286,11 @@ static void testObjTrust(SAFE_PROVIDER_FUNCTIONS *funcs, GUID *actionID)
/* Crashes
ret = funcs->pfnObjectTrust(&data);
*/
GetWindowsDirectoryW
(
notepadPath
,
MAX_PATH
);
lstrcatW
(
notepadPath
,
notepad
);
fileInfo
.
pcwszFilePath
=
notepadPath
;
/* Workaround missing W-functions for win9x */
GetWindowsDirectoryA
(
notepadPath
,
MAX_PATH
);
lstrcatA
(
notepadPath
,
notepad
);
MultiByteToWideChar
(
0
,
0
,
notepadPath
,
-
1
,
notepadPathW
,
MAX_PATH
);
fileInfo
.
pcwszFilePath
=
notepadPathW
;
/* pfnObjectTrust now crashes unless both pPDSip and psPfns are set */
U
(
data
).
pPDSip
=
&
provDataSIP
;
data
.
psPfns
=
(
CRYPT_PROVIDER_FUNCTIONS
*
)
funcs
;
...
...
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