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
f681cd09
Commit
f681cd09
authored
Aug 23, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed RegisterClass last error code on atom creation failure.
parent
c1c94ec8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
23 deletions
+10
-23
class.c
windows/class.c
+10
-23
No files found.
windows/class.c
View file @
f681cd09
...
...
@@ -460,18 +460,14 @@ ATOM WINAPI RegisterClass16( const WNDCLASS16 *wc )
* >0: Unique identifier
* 0: Failure
*/
ATOM
WINAPI
RegisterClassA
(
const
WNDCLASSA
*
wc
/* Address of structure with class data */
)
{
ATOM
WINAPI
RegisterClassA
(
const
WNDCLASSA
*
wc
)
/* Address of structure with class data */
{
ATOM
atom
;
int
iSmIconWidth
,
iSmIconHeight
;
CLASS
*
classPtr
;
if
(
!
(
atom
=
GlobalAddAtomA
(
wc
->
lpszClassName
)))
{
SetLastError
(
ERROR_CLASS_ALREADY_EXISTS
);
return
FALSE
;
}
if
(
!
(
atom
=
GlobalAddAtomA
(
wc
->
lpszClassName
)))
return
0
;
if
(
!
(
classPtr
=
CLASS_RegisterClass
(
atom
,
wc
->
hInstance
,
wc
->
style
,
wc
->
cbClsExtra
,
wc
->
cbWndExtra
,
(
WNDPROC16
)
wc
->
lpfnWndProc
,
...
...
@@ -512,11 +508,8 @@ ATOM WINAPI RegisterClassW( const WNDCLASSW* wc )
int
iSmIconWidth
,
iSmIconHeight
;
CLASS
*
classPtr
;
if
(
!
(
atom
=
GlobalAddAtomW
(
wc
->
lpszClassName
)))
{
SetLastError
(
ERROR_CLASS_ALREADY_EXISTS
);
return
FALSE
;
}
if
(
!
(
atom
=
GlobalAddAtomW
(
wc
->
lpszClassName
)))
return
0
;
if
(
!
(
classPtr
=
CLASS_RegisterClass
(
atom
,
wc
->
hInstance
,
wc
->
style
,
wc
->
cbClsExtra
,
wc
->
cbWndExtra
,
(
WNDPROC16
)
wc
->
lpfnWndProc
,
...
...
@@ -592,11 +585,8 @@ ATOM WINAPI RegisterClassExA( const WNDCLASSEXA* wc )
ATOM
atom
;
CLASS
*
classPtr
;
if
(
!
(
atom
=
GlobalAddAtomA
(
wc
->
lpszClassName
)))
{
SetLastError
(
ERROR_CLASS_ALREADY_EXISTS
);
return
FALSE
;
}
if
(
!
(
atom
=
GlobalAddAtomA
(
wc
->
lpszClassName
)))
return
0
;
if
(
!
(
classPtr
=
CLASS_RegisterClass
(
atom
,
wc
->
hInstance
,
wc
->
style
,
wc
->
cbClsExtra
,
wc
->
cbWndExtra
,
(
WNDPROC16
)
wc
->
lpfnWndProc
,
...
...
@@ -630,11 +620,8 @@ ATOM WINAPI RegisterClassExW( const WNDCLASSEXW* wc )
ATOM
atom
;
CLASS
*
classPtr
;
if
(
!
(
atom
=
GlobalAddAtomW
(
wc
->
lpszClassName
)))
{
SetLastError
(
ERROR_CLASS_ALREADY_EXISTS
);
return
0
;
}
if
(
!
(
atom
=
GlobalAddAtomW
(
wc
->
lpszClassName
)))
return
0
;
if
(
!
(
classPtr
=
CLASS_RegisterClass
(
atom
,
wc
->
hInstance
,
wc
->
style
,
wc
->
cbClsExtra
,
wc
->
cbWndExtra
,
(
WNDPROC16
)
wc
->
lpfnWndProc
,
...
...
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