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
bbbd5a49
Commit
bbbd5a49
authored
Nov 28, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Nov 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl/tests: Skip tests on old versions of atl.dll.
parent
92705a48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
registrar.c
dlls/atl/tests/registrar.c
+12
-4
No files found.
dlls/atl/tests/registrar.c
View file @
bbbd5a49
...
...
@@ -59,6 +59,12 @@ static void test_registrar(void)
INT
count
;
WCHAR
*
textW
=
NULL
;
if
(
!
GetProcAddress
(
GetModuleHandleA
(
"atl.dll"
),
"AtlAxAttachControl"
))
{
win_skip
(
"Old versions of atl.dll don't support binary values
\n
"
);
return
;
}
hr
=
CoCreateInstance
(
&
CLSID_Registrar
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IRegistrar
,
(
void
**
)
&
registrar
);
if
(
FAILED
(
hr
))
{
...
...
@@ -78,7 +84,7 @@ static void test_registrar(void)
MultiByteToWideChar
(
CP_ACP
,
0
,
textA
,
-
1
,
textW
,
count
);
hr
=
IRegistrar_StringRegister
(
registrar
,
textW
);
ok
(
SUCCEEDED
(
hr
),
"IRegistar_StringRegister failed, hr = 0x%08X
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"IRegist
r
ar_StringRegister failed, hr = 0x%08X
\n
"
,
hr
);
lret
=
RegOpenKeyA
(
HKEY_CLASSES_ROOT
,
"eebf73c4-50fd-478f-bbcf-db212221227a"
,
&
key
);
ok
(
lret
==
ERROR_SUCCESS
,
"error %d opening registry key
\n
"
,
lret
);
...
...
@@ -106,20 +112,22 @@ static void test_registrar(void)
size
=
4
;
lret
=
RegQueryValueExA
(
key
,
"binary_quoted"
,
NULL
,
NULL
,
bytes
,
&
size
);
ok
(
lret
==
ERROR_SUCCESS
,
"RegQueryValueA, failed, error %d
\n
"
,
lret
);
ok
(
bytes
[
0
]
=
0xde
&&
bytes
[
1
]
==
0xad
&&
bytes
[
2
]
==
0xbe
&&
bytes
[
3
]
==
0xef
,
ok
(
bytes
[
0
]
=
=
0xde
&&
bytes
[
1
]
==
0xad
&&
bytes
[
2
]
==
0xbe
&&
bytes
[
3
]
==
0xef
,
"binary quoted value was not preserved (it's 0x%02X%02X%02X%02X)
\n
"
,
0xff
&
bytes
[
0
],
0xff
&
bytes
[
1
],
0xff
&
bytes
[
2
],
0xff
&
bytes
[
3
]);
size
=
4
;
lret
=
RegQueryValueExA
(
key
,
"binary_unquoted"
,
NULL
,
NULL
,
bytes
,
&
size
);
ok
(
lret
==
ERROR_SUCCESS
,
"RegQueryValueA, failed, error %d
\n
"
,
lret
);
ok
(
bytes
[
0
]
=
0xde
&&
bytes
[
1
]
==
0xad
&&
bytes
[
2
]
==
0xbe
&&
bytes
[
3
]
==
0xef
,
ok
(
bytes
[
0
]
=
=
0xde
&&
bytes
[
1
]
==
0xad
&&
bytes
[
2
]
==
0xbe
&&
bytes
[
3
]
==
0xef
,
"binary unquoted value was not preserved (it's 0x%02X%02X%02X%02X)
\n
"
,
0xff
&
bytes
[
0
],
0xff
&
bytes
[
1
],
0xff
&
bytes
[
2
],
0xff
&
bytes
[
3
]);
hr
=
IRegistrar_StringUnregister
(
registrar
,
textW
);
ok
(
SUCCEEDED
(
hr
),
"IRegistar_StringUnregister failed, hr = 0x%08X
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"IRegist
r
ar_StringUnregister failed, hr = 0x%08X
\n
"
,
hr
);
RegCloseKey
(
key
);
HeapFree
(
GetProcessHeap
(),
0
,
textW
);
}
else
skip
(
"allocating memory failed
\n
"
);
...
...
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