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
2a1e856b
Commit
2a1e856b
authored
Mar 05, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Don't trace last error when error code is returned directly.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
485a412b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
compobj.c
dlls/ole32/tests/compobj.c
+7
-8
No files found.
dlls/ole32/tests/compobj.c
View file @
2a1e856b
...
...
@@ -2098,12 +2098,11 @@ static void test_TreatAsClass(void)
ok
(
IsEqualGUID
(
&
out
,
&
deadbeef
),
"expected to get same clsid back
\n
"
);
lr
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
"CLSID"
,
0
,
KEY_READ
,
&
clsidkey
);
ok
(
lr
==
ERROR_SUCCESS
,
"Couldn't open CLSID key
\n
"
);
ok
(
!
lr
,
"Couldn't open CLSID key, error %d
\n
"
,
lr
);
lr
=
RegCreateKeyExA
(
clsidkey
,
deadbeefA
,
0
,
NULL
,
0
,
KEY_WRITE
,
NULL
,
&
deadbeefkey
,
NULL
);
if
(
lr
)
{
win_skip
(
"CoGetTreatAsClass() tests will be skipped (failed to create a test key, error %d)
\n
"
,
GetLastError
());
win_skip
(
"CoGetTreatAsClass() tests will be skipped (failed to create a test key, error %d)
\n
"
,
lr
);
RegCloseKey
(
clsidkey
);
return
;
}
...
...
@@ -2377,13 +2376,13 @@ static void test_OleRegGetUserType(void)
return
;
}
ok
(
!
ret
,
"failed to create a key
%d, error %d
\n
"
,
ret
,
GetLastError
()
);
ok
(
!
ret
,
"failed to create a key
, error %d
\n
"
,
ret
);
ret
=
RegSetValueExW
(
classkey
,
NULL
,
0
,
REG_SZ
,
(
const
BYTE
*
)
defvalueW
,
sizeof
(
defvalueW
));
ok
(
!
ret
,
"got
%d, error %d
\n
"
,
ret
,
GetLastError
()
);
ok
(
!
ret
,
"got
error %d
\n
"
,
ret
);
ret
=
RegCreateKeyExA
(
classkey
,
"AuxUserType"
,
0
,
NULL
,
0
,
KEY_ALL_ACCESS
,
NULL
,
&
auxhkey
,
NULL
);
ok
(
!
ret
,
"got
%d, error %d
\n
"
,
ret
,
GetLastError
()
);
ok
(
!
ret
,
"got
error %d
\n
"
,
ret
);
/* populate AuxUserType */
for
(
i
=
0
;
i
<=
4
;
i
++
)
{
...
...
@@ -2391,10 +2390,10 @@ static void test_OleRegGetUserType(void)
sprintf
(
name
,
"AuxUserType
\\
%d"
,
i
);
ret
=
RegCreateKeyExA
(
classkey
,
name
,
0
,
NULL
,
0
,
KEY_ALL_ACCESS
,
NULL
,
&
hkey
,
NULL
);
ok
(
!
ret
,
"got
%d, error %d
\n
"
,
ret
,
GetLastError
()
);
ok
(
!
ret
,
"got
error %d
\n
"
,
ret
);
ret
=
RegSetValueExA
(
hkey
,
NULL
,
0
,
REG_SZ
,
(
const
BYTE
*
)
auxvalues
[
i
],
strlen
(
auxvalues
[
i
]));
ok
(
!
ret
,
"got
%d, error %d
\n
"
,
ret
,
GetLastError
()
);
ok
(
!
ret
,
"got
error %d
\n
"
,
ret
);
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