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
4cc498f8
Commit
4cc498f8
authored
May 10, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Replace WINPROC_GetProcType by WINPROC_IsUnicode.
parent
a9e5e94b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
class.c
dlls/user/class.c
+3
-3
win.c
dlls/user/win.c
+1
-1
winproc.c
dlls/user/winproc.c
+5
-5
winproc.h
dlls/user/winproc.h
+1
-1
No files found.
dlls/user/class.c
View file @
4cc498f8
...
...
@@ -187,7 +187,7 @@ static void CLASS_SetProc16( CLASS *classPtr, WNDPROC16 newproc )
{
WNDPROC
proc
=
WINPROC_AllocProc16
(
newproc
);
if
(
WINPROC_
GetProcType
(
proc
)
==
WIN_PROC_32W
)
if
(
WINPROC_
IsUnicode
(
proc
,
FALSE
)
)
{
classPtr
->
winprocA
=
0
;
classPtr
->
winprocW
=
proc
;
...
...
@@ -210,7 +210,7 @@ static void CLASS_SetProc( CLASS *classPtr, WNDPROC newproc, BOOL unicode )
{
WNDPROC
proc
=
WINPROC_AllocProc
(
newproc
,
unicode
);
if
(
WINPROC_
GetProcType
(
proc
)
==
WIN_PROC_32W
)
if
(
WINPROC_
IsUnicode
(
proc
,
unicode
)
)
{
classPtr
->
winprocA
=
0
;
classPtr
->
winprocW
=
proc
;
...
...
@@ -532,7 +532,7 @@ void CLASS_AddWindow( CLASS *class, WND *win, WINDOWPROCTYPE type )
}
win
->
class
=
class
;
win
->
clsStyle
=
class
->
style
;
if
(
WINPROC_
GetProcType
(
win
->
winproc
)
==
WIN_PROC_32W
)
win
->
flags
|=
WIN_ISUNICODE
;
if
(
WINPROC_
IsUnicode
(
win
->
winproc
,
(
type
==
WIN_PROC_32W
)
)
)
win
->
flags
|=
WIN_ISUNICODE
;
}
...
...
dlls/user/win.c
View file @
4cc498f8
...
...
@@ -1993,7 +1993,7 @@ static LONG_PTR WIN_SetWindowLong( HWND hwnd, INT offset, LONG_PTR newval, BOOL
UINT
old_flags
=
wndPtr
->
flags
;
retval
=
(
ULONG_PTR
)
WINPROC_GetProc
(
wndPtr
->
winproc
,
unicode
);
wndPtr
->
winproc
=
WINPROC_AllocProc
(
(
WNDPROC
)
newval
,
unicode
);
if
(
WINPROC_
GetProcType
(
wndPtr
->
winproc
)
==
WIN_PROC_32W
)
wndPtr
->
flags
|=
WIN_ISUNICODE
;
if
(
WINPROC_
IsUnicode
(
wndPtr
->
winproc
,
unicode
)
)
wndPtr
->
flags
|=
WIN_ISUNICODE
;
else
wndPtr
->
flags
&=
~
WIN_ISUNICODE
;
if
(
!
((
old_flags
^
wndPtr
->
flags
)
&
WIN_ISUNICODE
))
{
...
...
dlls/user/winproc.c
View file @
4cc498f8
...
...
@@ -568,16 +568,16 @@ WNDPROC WINPROC_AllocProc( WNDPROC func, BOOL unicode )
/**********************************************************************
* WINPROC_
GetProcTyp
e
* WINPROC_
IsUnicod
e
*
* Return the window procedure type.
* Return the window procedure type
, or the default value if not a winproc handle
.
*/
WINDOWPROCTYPE
WINPROC_GetProcType
(
WNDPROC
proc
)
BOOL
WINPROC_IsUnicode
(
WNDPROC
proc
,
BOOL
def_val
)
{
WINDOWPROC
*
ptr
=
handle_to_proc
(
proc
);
if
(
!
ptr
)
return
WIN_PROC_INVALID
;
return
ptr
->
type
;
if
(
!
ptr
)
return
def_val
;
return
(
ptr
->
type
==
WIN_PROC_32W
)
;
}
...
...
dlls/user/winproc.h
View file @
4cc498f8
...
...
@@ -56,7 +56,7 @@ extern WNDPROC16 WINPROC_GetProc16( WNDPROC proc );
extern
WNDPROC
WINPROC_AllocProc16
(
WNDPROC16
func
);
extern
WNDPROC
WINPROC_GetProc
(
WNDPROC
proc
,
BOOL
unicode
);
extern
WNDPROC
WINPROC_AllocProc
(
WNDPROC
func
,
BOOL
unicode
);
extern
WINDOWPROCTYPE
WINPROC_GetProcType
(
WNDPROC
proc
);
extern
BOOL
WINPROC_IsUnicode
(
WNDPROC
proc
,
BOOL
def_val
);
extern
INT
WINPROC_MapMsg32ATo32W
(
HWND
hwnd
,
UINT
msg
,
WPARAM
*
pwparam
,
LPARAM
*
plparam
);
...
...
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