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
2c756725
Commit
2c756725
authored
Nov 21, 2002
by
Stefan Leichter
Committed by
Alexandre Julliard
Nov 21, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved implementation of Get/SetClassLong from ascii to unicode.
parent
ab73d6e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
class.c
windows/class.c
+18
-18
No files found.
windows/class.c
View file @
2c756725
...
...
@@ -834,9 +834,9 @@ LONG WINAPI GetClassLong16( HWND16 hwnd16, INT16 offset )
/***********************************************************************
* GetClassLong
A
(USER32.@)
* GetClassLong
W
(USER32.@)
*/
LONG
WINAPI
GetClassLong
A
(
HWND
hwnd
,
INT
offset
)
LONG
WINAPI
GetClassLong
W
(
HWND
hwnd
,
INT
offset
)
{
CLASS
*
class
;
LONG
retvalue
=
0
;
...
...
@@ -882,10 +882,10 @@ LONG WINAPI GetClassLongA( HWND hwnd, INT offset )
retvalue
=
(
LONG
)
class
->
hInstance
;
break
;
case
GCL_WNDPROC
:
retvalue
=
(
LONG
)
CLASS_GetProc
(
class
,
WIN_PROC_32
A
);
retvalue
=
(
LONG
)
CLASS_GetProc
(
class
,
WIN_PROC_32
W
);
break
;
case
GCL_MENUNAME
:
retvalue
=
(
LONG
)
CLASS_GetMenuName
A
(
class
);
retvalue
=
(
LONG
)
CLASS_GetMenuName
W
(
class
);
break
;
case
GCW_ATOM
:
retvalue
=
(
DWORD
)
class
->
atomName
;
...
...
@@ -900,24 +900,24 @@ LONG WINAPI GetClassLongA( HWND hwnd, INT offset )
/***********************************************************************
* GetClassLong
W
(USER32.@)
* GetClassLong
A
(USER32.@)
*/
LONG
WINAPI
GetClassLong
W
(
HWND
hwnd
,
INT
offset
)
LONG
WINAPI
GetClassLong
A
(
HWND
hwnd
,
INT
offset
)
{
CLASS
*
class
;
LONG
retvalue
;
if
(
offset
!=
GCL_WNDPROC
&&
offset
!=
GCL_MENUNAME
)
return
GetClassLong
A
(
hwnd
,
offset
);
return
GetClassLong
W
(
hwnd
,
offset
);
TRACE
(
"%x %d
\n
"
,
hwnd
,
offset
);
if
(
!
(
class
=
get_class_ptr
(
hwnd
,
FALSE
)))
return
0
;
if
(
offset
==
GCL_WNDPROC
)
retvalue
=
(
LONG
)
CLASS_GetProc
(
class
,
WIN_PROC_32
W
);
retvalue
=
(
LONG
)
CLASS_GetProc
(
class
,
WIN_PROC_32
A
);
else
/* GCL_MENUNAME */
retvalue
=
(
LONG
)
CLASS_GetMenuName
W
(
class
);
retvalue
=
(
LONG
)
CLASS_GetMenuName
A
(
class
);
release_class_ptr
(
class
);
return
retvalue
;
...
...
@@ -979,9 +979,9 @@ LONG WINAPI SetClassLong16( HWND16 hwnd16, INT16 offset, LONG newval )
/***********************************************************************
* SetClassLong
A
(USER32.@)
* SetClassLong
W
(USER32.@)
*/
LONG
WINAPI
SetClassLong
A
(
HWND
hwnd
,
INT
offset
,
LONG
newval
)
LONG
WINAPI
SetClassLong
W
(
HWND
hwnd
,
INT
offset
,
LONG
newval
)
{
CLASS
*
class
;
LONG
retval
=
0
;
...
...
@@ -1003,11 +1003,11 @@ LONG WINAPI SetClassLongA( HWND hwnd, INT offset, LONG newval )
else
switch
(
offset
)
{
case
GCL_MENUNAME
:
CLASS_SetMenuName
A
(
class
,
(
LPC
STR
)
newval
);
CLASS_SetMenuName
W
(
class
,
(
LPCW
STR
)
newval
);
retval
=
0
;
/* Old value is now meaningless anyway */
break
;
case
GCL_WNDPROC
:
retval
=
(
LONG
)
CLASS_SetProc
(
class
,
(
WNDPROC
)
newval
,
WIN_PROC_32
A
);
retval
=
(
LONG
)
CLASS_SetProc
(
class
,
(
WNDPROC
)
newval
,
WIN_PROC_32
W
);
break
;
case
GCL_HBRBACKGROUND
:
retval
=
(
LONG
)
class
->
hbrBackground
;
...
...
@@ -1054,25 +1054,25 @@ LONG WINAPI SetClassLongA( HWND hwnd, INT offset, LONG newval )
/***********************************************************************
* SetClassLong
W
(USER32.@)
* SetClassLong
A
(USER32.@)
*/
LONG
WINAPI
SetClassLong
W
(
HWND
hwnd
,
INT
offset
,
LONG
newval
)
LONG
WINAPI
SetClassLong
A
(
HWND
hwnd
,
INT
offset
,
LONG
newval
)
{
CLASS
*
class
;
LONG
retval
;
if
(
offset
!=
GCL_WNDPROC
&&
offset
!=
GCL_MENUNAME
)
return
SetClassLong
A
(
hwnd
,
offset
,
newval
);
return
SetClassLong
W
(
hwnd
,
offset
,
newval
);
TRACE
(
"%x %d %lx
\n
"
,
hwnd
,
offset
,
newval
);
if
(
!
(
class
=
get_class_ptr
(
hwnd
,
TRUE
)))
return
0
;
if
(
offset
==
GCL_WNDPROC
)
retval
=
(
LONG
)
CLASS_SetProc
(
class
,
(
WNDPROC
)
newval
,
WIN_PROC_32
W
);
retval
=
(
LONG
)
CLASS_SetProc
(
class
,
(
WNDPROC
)
newval
,
WIN_PROC_32
A
);
else
/* GCL_MENUNAME */
{
CLASS_SetMenuName
W
(
class
,
(
LPCW
STR
)
newval
);
CLASS_SetMenuName
A
(
class
,
(
LPC
STR
)
newval
);
retval
=
0
;
/* Old value is now meaningless anyway */
}
release_class_ptr
(
class
);
...
...
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