Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
c4fd1099
Commit
c4fd1099
authored
May 08, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Avoid touching last error on successful path of GetClassInfo().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cf9c6fc0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
class.c
dlls/user32/class.c
+4
-1
class.c
dlls/user32/tests/class.c
+1
-0
No files found.
dlls/user32/class.c
View file @
c4fd1099
...
...
@@ -333,6 +333,7 @@ const WCHAR *CLASS_GetVersionedName( const WCHAR *name, UINT *basename_offset, B
ULONG
module_offset
;
}
*
wndclass
;
const
WCHAR
*
module
,
*
ret
;
UNICODE_STRING
name_us
;
HMODULE
hmod
;
if
(
basename_offset
)
...
...
@@ -345,7 +346,9 @@ const WCHAR *CLASS_GetVersionedName( const WCHAR *name, UINT *basename_offset, B
return
name
;
data
.
cbSize
=
sizeof
(
data
);
if
(
!
FindActCtxSectionStringW
(
0
,
NULL
,
ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION
,
name
,
&
data
))
RtlInitUnicodeString
(
&
name_us
,
name
);
if
(
RtlFindActivationContextSectionString
(
0
,
NULL
,
ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION
,
&
name_us
,
&
data
))
return
name
;
wndclass
=
(
struct
wndclass_redirect_data
*
)
data
.
lpData
;
...
...
dlls/user32/tests/class.c
View file @
c4fd1099
...
...
@@ -998,6 +998,7 @@ if (0) { /* crashes under XP */
SetLastError
(
0xdeadbeef
);
ret
=
GetClassInfoExA
(
0
,
"static"
,
&
wcx
);
ok
(
ret
,
"GetClassInfoExA() error %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
0xdeadbeef
,
"Unexpected error code %d
\n
"
,
GetLastError
());
ok
(
wcx
.
cbSize
==
0
,
"expected 0, got %u
\n
"
,
wcx
.
cbSize
);
ok
(
wcx
.
lpfnWndProc
!=
NULL
,
"got null proc
\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