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
b4d246ba
Commit
b4d246ba
authored
Jan 27, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Fix test failures on Win95 by using A-functions.
parent
ae79b02c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
filtermapper.c
dlls/quartz/tests/filtermapper.c
+9
-12
No files found.
dlls/quartz/tests/filtermapper.c
View file @
b4d246ba
...
...
@@ -207,11 +207,10 @@ static void test_legacy_filter_registration(void)
static
const
CHAR
szFilterName
[]
=
"Testfilter"
;
static
const
WCHAR
wszPinName
[]
=
{
'P'
,
'i'
,
'n'
,
'1'
,
0
};
CLSID
clsidFilter
;
WCHAR
wszRegKey
[
MAX_PATH
];
CHAR
szRegKey
[
MAX_PATH
];
static
const
WCHAR
wszClsid
[]
=
{
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
0
};
static
const
CHAR
szClsid
[]
=
"CLSID"
;
static
const
WCHAR
wszSlash
[]
=
{
'\\'
,
0
};
WCHAR
wszGuidstring
[
MAX_PATH
];
CHAR
szGuidstring
[
MAX_PATH
];
LONG
lRet
;
HKEY
hKey
=
NULL
;
IEnumMoniker
*
pEnum
=
NULL
;
...
...
@@ -234,12 +233,14 @@ static void test_legacy_filter_registration(void)
hr
=
CoCreateGuid
(
&
clsidFilter
);
ok
(
hr
==
S_OK
,
"CoCreateGuid failed with %x
\n
"
,
hr
);
lstrcpyW
(
wszRegKey
,
wszClsid
);
lstrcatW
(
wszRegKey
,
wszSlash
);
lRet
=
StringFromGUID2
(
&
clsidFilter
,
wszRegKey
+
lstrlenW
(
wszRegKey
),
MAX_PATH
-
lstrlenW
(
wszRegKey
));
lRet
=
StringFromGUID2
(
&
clsidFilter
,
wszGuidstring
,
MAX_PATH
);
ok
(
lRet
>
0
,
"StringFromGUID2 failed
\n
"
);
if
(
!
lRet
)
goto
out
;
WideCharToMultiByte
(
CP_ACP
,
0
,
wszRegKey
,
-
1
,
szRegKey
,
sizeof
(
szRegKey
),
0
,
0
);
WideCharToMultiByte
(
CP_ACP
,
0
,
wszGuidstring
,
-
1
,
szGuidstring
,
MAX_PATH
,
0
,
0
);
lstrcpyA
(
szRegKey
,
szClsid
);
lstrcatA
(
szRegKey
,
"
\\
"
);
lstrcatA
(
szRegKey
,
szGuidstring
);
/* Register---- functions need a filter class key to write pin and pin media type data to. Create a bogus
* class key for it. */
...
...
@@ -303,11 +304,7 @@ static void test_legacy_filter_registration(void)
lRet
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
szClsid
,
0
,
KEY_WRITE
|
DELETE
,
&
hKey
);
ok
(
lRet
==
ERROR_SUCCESS
,
"RegOpenKeyExA failed with %x
\n
"
,
HRESULT_FROM_WIN32
(
lRet
));
lRet
=
StringFromGUID2
(
&
clsidFilter
,
wszRegKey
,
MAX_PATH
);
ok
(
lRet
>
0
,
"StringFromGUID2 failed
\n
"
);
WideCharToMultiByte
(
CP_ACP
,
0
,
wszRegKey
,
-
1
,
szRegKey
,
sizeof
(
szRegKey
),
0
,
0
);
lRet
=
RegDeleteKeyA
(
hKey
,
szRegKey
);
lRet
=
RegDeleteKeyA
(
hKey
,
szGuidstring
);
ok
(
lRet
==
ERROR_SUCCESS
,
"RegDeleteKeyA failed with %x
\n
"
,
HRESULT_FROM_WIN32
(
lRet
));
if
(
hKey
)
RegCloseKey
(
hKey
);
...
...
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