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
c787b146
Commit
c787b146
authored
Jul 06, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 06, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-Wpointer-sign fixes for gcc 4.0.
parent
16466af7
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
27 additions
and
27 deletions
+27
-27
dde_client.c
dlls/user/dde_client.c
+1
-1
dde_misc.c
dlls/user/dde_misc.c
+1
-1
defwnd.c
dlls/user/defwnd.c
+1
-1
driver16.c
dlls/user/driver16.c
+1
-1
hook.c
dlls/user/hook.c
+2
-2
hook16.c
dlls/user/hook16.c
+1
-1
message.c
dlls/user/message.c
+4
-4
spy.c
dlls/user/spy.c
+3
-3
sysparams.c
dlls/user/sysparams.c
+1
-1
text.c
dlls/user/text.c
+2
-2
user_main.c
dlls/user/user_main.c
+1
-1
winproc.c
dlls/user/winproc.c
+9
-9
No files found.
dlls/user/dde_client.c
View file @
c787b146
...
@@ -573,7 +573,7 @@ static HGLOBAL WDML_BuildExecuteCommand(WDML_CONV* pConv, LPCVOID pData, DWORD c
...
@@ -573,7 +573,7 @@ static HGLOBAL WDML_BuildExecuteCommand(WDML_CONV* pConv, LPCVOID pData, DWORD c
if
(
hMem
)
if
(
hMem
)
{
{
LP
BYTE
pDst
;
LP
STR
pDst
;
pDst
=
GlobalLock
(
hMem
);
pDst
=
GlobalLock
(
hMem
);
if
(
pDst
)
if
(
pDst
)
...
...
dlls/user/dde_misc.c
View file @
c787b146
...
@@ -48,7 +48,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ddeml);
...
@@ -48,7 +48,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ddeml);
#define HSZ2ATOM(hsz) ((ATOM) (ULONG_PTR)(hsz))
#define HSZ2ATOM(hsz) ((ATOM) (ULONG_PTR)(hsz))
static
WDML_INSTANCE
*
WDML_InstanceList
=
NULL
;
static
WDML_INSTANCE
*
WDML_InstanceList
=
NULL
;
static
DWORD
WDML_MaxInstanceID
=
0
;
/* OK for present, have to worry about wrap-around later */
static
LONG
WDML_MaxInstanceID
=
0
;
/* OK for present, have to worry about wrap-around later */
const
WCHAR
WDML_szEventClass
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
'D'
,
'd'
,
'e'
,
'E'
,
'v'
,
'e'
,
'n'
,
't'
,
'C'
,
'l'
,
'a'
,
's'
,
's'
,
0
};
const
WCHAR
WDML_szEventClass
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
'D'
,
'd'
,
'e'
,
'E'
,
'v'
,
'e'
,
'n'
,
't'
,
'C'
,
'l'
,
'a'
,
's'
,
's'
,
0
};
static
CRITICAL_SECTION_DEBUG
critsect_debug
=
static
CRITICAL_SECTION_DEBUG
critsect_debug
=
...
...
dlls/user/defwnd.c
View file @
c787b146
...
@@ -831,7 +831,7 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
...
@@ -831,7 +831,7 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
case
WM_SYSCHAR
:
case
WM_SYSCHAR
:
{
{
BYTE
ch
=
LOWORD
(
wParam
);
CHAR
ch
=
LOWORD
(
wParam
);
WCHAR
wch
;
WCHAR
wch
;
MultiByteToWideChar
(
CP_ACP
,
0
,
&
ch
,
1
,
&
wch
,
1
);
MultiByteToWideChar
(
CP_ACP
,
0
,
&
ch
,
1
,
&
wch
,
1
);
wParam
=
MAKEWPARAM
(
wch
,
HIWORD
(
wParam
)
);
wParam
=
MAKEWPARAM
(
wch
,
HIWORD
(
wParam
)
);
...
...
dlls/user/driver16.c
View file @
c787b146
...
@@ -120,7 +120,7 @@ static LRESULT inline DRIVER_SendMessage(LPWINE_DRIVER lpDrv, UINT16 msg,
...
@@ -120,7 +120,7 @@ static LRESULT inline DRIVER_SendMessage(LPWINE_DRIVER lpDrv, UINT16 msg,
LPARAM
lParam1
,
LPARAM
lParam2
)
LPARAM
lParam1
,
LPARAM
lParam2
)
{
{
WORD
args
[
8
];
WORD
args
[
8
];
LRESULT
ret
;
DWORD
ret
;
TRACE
(
"Before CallDriverProc proc=%p driverID=%08lx wMsg=%04x p1=%08lx p2=%08lx
\n
"
,
TRACE
(
"Before CallDriverProc proc=%p driverID=%08lx wMsg=%04x p1=%08lx p2=%08lx
\n
"
,
lpDrv
->
lpDrvProc
,
lpDrv
->
dwDriverID
,
msg
,
lParam1
,
lParam2
);
lpDrv
->
lpDrvProc
,
lpDrv
->
dwDriverID
,
msg
,
lParam1
,
lParam2
);
...
...
dlls/user/hook.c
View file @
c787b146
...
@@ -333,7 +333,7 @@ LRESULT HOOK_CallHooks( INT id, INT code, WPARAM wparam, LPARAM lparam, BOOL uni
...
@@ -333,7 +333,7 @@ LRESULT HOOK_CallHooks( INT id, INT code, WPARAM wparam, LPARAM lparam, BOOL uni
DWORD
pid
=
0
,
tid
=
0
;
DWORD
pid
=
0
,
tid
=
0
;
WCHAR
module
[
MAX_PATH
];
WCHAR
module
[
MAX_PATH
];
BOOL
unicode_hook
=
FALSE
;
BOOL
unicode_hook
=
FALSE
;
LRESULT
ret
=
0
;
DWORD_PTR
ret
=
0
;
USER_CheckNotLock
();
USER_CheckNotLock
();
...
@@ -513,7 +513,7 @@ LRESULT WINAPI CallNextHookEx( HHOOK hhook, INT code, WPARAM wparam, LPARAM lpar
...
@@ -513,7 +513,7 @@ LRESULT WINAPI CallNextHookEx( HHOOK hhook, INT code, WPARAM wparam, LPARAM lpar
DWORD
pid
=
0
,
tid
=
0
;
DWORD
pid
=
0
,
tid
=
0
;
INT
id
=
0
;
INT
id
=
0
;
BOOL
prev_unicode
=
FALSE
,
next_unicode
=
FALSE
;
BOOL
prev_unicode
=
FALSE
,
next_unicode
=
FALSE
;
LRESULT
ret
=
0
;
DWORD_PTR
ret
=
0
;
SERVER_START_REQ
(
get_next_hook
)
SERVER_START_REQ
(
get_next_hook
)
{
{
...
...
dlls/user/hook16.c
View file @
c787b146
...
@@ -111,7 +111,7 @@ static LRESULT call_hook_16( INT id, INT code, WPARAM wp, LPARAM lp )
...
@@ -111,7 +111,7 @@ static LRESULT call_hook_16( INT id, INT code, WPARAM wp, LPARAM lp )
{
{
struct
hook16_queue_info
*
info
=
get_user_thread_info
()
->
hook16_info
;
struct
hook16_queue_info
*
info
=
get_user_thread_info
()
->
hook16_info
;
WORD
args
[
4
];
WORD
args
[
4
];
LRESULT
ret
;
DWORD
ret
;
INT
prev_id
=
info
->
id
;
INT
prev_id
=
info
->
id
;
info
->
id
=
id
;
info
->
id
=
id
;
...
...
dlls/user/message.c
View file @
c787b146
...
@@ -409,7 +409,7 @@ static WPARAM map_wparam_WtoA( UINT message, WPARAM wparam )
...
@@ -409,7 +409,7 @@ static WPARAM map_wparam_WtoA( UINT message, WPARAM wparam )
{
{
WCHAR
wch
=
LOWORD
(
wparam
);
WCHAR
wch
=
LOWORD
(
wparam
);
BYTE
ch
;
BYTE
ch
;
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
&
ch
,
1
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
(
LPSTR
)
&
ch
,
1
,
NULL
,
NULL
);
wparam
=
MAKEWPARAM
(
ch
,
HIWORD
(
wparam
)
);
wparam
=
MAKEWPARAM
(
ch
,
HIWORD
(
wparam
)
);
}
}
break
;
break
;
...
@@ -418,7 +418,7 @@ static WPARAM map_wparam_WtoA( UINT message, WPARAM wparam )
...
@@ -418,7 +418,7 @@ static WPARAM map_wparam_WtoA( UINT message, WPARAM wparam )
WCHAR
wch
=
LOWORD
(
wparam
);
WCHAR
wch
=
LOWORD
(
wparam
);
BYTE
ch
[
2
];
BYTE
ch
[
2
];
if
(
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
ch
,
2
,
NULL
,
NULL
)
==
2
)
if
(
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
(
LPSTR
)
ch
,
2
,
NULL
,
NULL
)
==
2
)
wparam
=
MAKEWPARAM
(
(
ch
[
0
]
<<
8
)
|
ch
[
1
],
HIWORD
(
wparam
)
);
wparam
=
MAKEWPARAM
(
(
ch
[
0
]
<<
8
)
|
ch
[
1
],
HIWORD
(
wparam
)
);
else
else
wparam
=
MAKEWPARAM
(
ch
[
0
],
HIWORD
(
wparam
)
);
wparam
=
MAKEWPARAM
(
ch
[
0
],
HIWORD
(
wparam
)
);
...
@@ -2432,7 +2432,7 @@ LRESULT WINAPI SendMessageTimeoutA( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
...
@@ -2432,7 +2432,7 @@ LRESULT WINAPI SendMessageTimeoutA( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
*/
*/
LRESULT
WINAPI
SendMessageW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
LRESULT
WINAPI
SendMessageW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
{
LRESULT
res
=
0
;
DWORD_PTR
res
=
0
;
SendMessageTimeoutW
(
hwnd
,
msg
,
wparam
,
lparam
,
SMTO_NORMAL
,
INFINITE
,
&
res
);
SendMessageTimeoutW
(
hwnd
,
msg
,
wparam
,
lparam
,
SMTO_NORMAL
,
INFINITE
,
&
res
);
return
res
;
return
res
;
}
}
...
@@ -2443,7 +2443,7 @@ LRESULT WINAPI SendMessageW( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
...
@@ -2443,7 +2443,7 @@ LRESULT WINAPI SendMessageW( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
*/
*/
LRESULT
WINAPI
SendMessageA
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
LRESULT
WINAPI
SendMessageA
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
{
LRESULT
res
=
0
;
DWORD_PTR
res
=
0
;
SendMessageTimeoutA
(
hwnd
,
msg
,
wparam
,
lparam
,
SMTO_NORMAL
,
INFINITE
,
&
res
);
SendMessageTimeoutA
(
hwnd
,
msg
,
wparam
,
lparam
,
SMTO_NORMAL
,
INFINITE
,
&
res
);
return
res
;
return
res
;
}
}
...
...
dlls/user/spy.c
View file @
c787b146
...
@@ -2590,7 +2590,7 @@ int SPY_Init(void)
...
@@ -2590,7 +2590,7 @@ int SPY_Init(void)
DWORD
type
,
count
=
sizeof
(
buffer
);
DWORD
type
,
count
=
sizeof
(
buffer
);
buffer
[
0
]
=
0
;
buffer
[
0
]
=
0
;
if
(
!
RegQueryValueExA
(
hkey
,
"SpyInclude"
,
0
,
&
type
,
buffer
,
&
count
)
&&
if
(
!
RegQueryValueExA
(
hkey
,
"SpyInclude"
,
0
,
&
type
,
(
LPBYTE
)
buffer
,
&
count
)
&&
strcmp
(
buffer
,
"INCLUDEALL"
))
strcmp
(
buffer
,
"INCLUDEALL"
))
{
{
TRACE
(
"Include=%s
\n
"
,
buffer
);
TRACE
(
"Include=%s
\n
"
,
buffer
);
...
@@ -2600,7 +2600,7 @@ int SPY_Init(void)
...
@@ -2600,7 +2600,7 @@ int SPY_Init(void)
count
=
sizeof
(
buffer
);
count
=
sizeof
(
buffer
);
buffer
[
0
]
=
0
;
buffer
[
0
]
=
0
;
if
(
!
RegQueryValueExA
(
hkey
,
"SpyExclude"
,
0
,
&
type
,
buffer
,
&
count
))
if
(
!
RegQueryValueExA
(
hkey
,
"SpyExclude"
,
0
,
&
type
,
(
LPBYTE
)
buffer
,
&
count
))
{
{
TRACE
(
"Exclude=%s
\n
"
,
buffer
);
TRACE
(
"Exclude=%s
\n
"
,
buffer
);
if
(
!
strcmp
(
buffer
,
"EXCLUDEALL"
))
if
(
!
strcmp
(
buffer
,
"EXCLUDEALL"
))
...
@@ -2612,7 +2612,7 @@ int SPY_Init(void)
...
@@ -2612,7 +2612,7 @@ int SPY_Init(void)
SPY_ExcludeDWP
=
0
;
SPY_ExcludeDWP
=
0
;
count
=
sizeof
(
buffer
);
count
=
sizeof
(
buffer
);
if
(
!
RegQueryValueExA
(
hkey
,
"SpyExcludeDWP"
,
0
,
&
type
,
buffer
,
&
count
))
if
(
!
RegQueryValueExA
(
hkey
,
"SpyExcludeDWP"
,
0
,
&
type
,
(
LPBYTE
)
buffer
,
&
count
))
SPY_ExcludeDWP
=
atoi
(
buffer
);
SPY_ExcludeDWP
=
atoi
(
buffer
);
RegCloseKey
(
hkey
);
RegCloseKey
(
hkey
);
...
...
dlls/user/sysparams.c
View file @
c787b146
...
@@ -757,7 +757,7 @@ void SYSPARAMS_Init(void)
...
@@ -757,7 +757,7 @@ void SYSPARAMS_Init(void)
if
(
hkey
)
if
(
hkey
)
{
{
DWORD
dwDataSize
=
sizeof
(
buffer
);
DWORD
dwDataSize
=
sizeof
(
buffer
);
if
(
!
(
RegQueryValueExA
(
hkey
,
DefSysColors
[
i
*
2
],
0
,
0
,
buffer
,
&
dwDataSize
)))
if
(
!
(
RegQueryValueExA
(
hkey
,
DefSysColors
[
i
*
2
],
0
,
0
,
(
LPBYTE
)
buffer
,
&
dwDataSize
)))
if
(
sscanf
(
buffer
,
"%d %d %d"
,
&
r
,
&
g
,
&
b
)
==
3
)
bOk
=
TRUE
;
if
(
sscanf
(
buffer
,
"%d %d %d"
,
&
r
,
&
g
,
&
b
)
==
3
)
bOk
=
TRUE
;
}
}
...
...
dlls/user/text.c
View file @
c787b146
...
@@ -598,7 +598,7 @@ static const WCHAR *TEXT_NextLineW( HDC hdc, const WCHAR *str, int *count,
...
@@ -598,7 +598,7 @@ static const WCHAR *TEXT_NextLineW( HDC hdc, const WCHAR *str, int *count,
int
num_fit
;
int
num_fit
;
int
word_broken
;
int
word_broken
;
int
line_fits
;
int
line_fits
;
int
j_in_seg
;
unsigned
int
j_in_seg
;
int
ellipsified
;
int
ellipsified
;
*
pprefix_offset
=
-
1
;
*
pprefix_offset
=
-
1
;
...
@@ -674,7 +674,7 @@ static const WCHAR *TEXT_NextLineW( HDC hdc, const WCHAR *str, int *count,
...
@@ -674,7 +674,7 @@ static const WCHAR *TEXT_NextLineW( HDC hdc, const WCHAR *str, int *count,
if
(
!
line_fits
&&
(
format
&
DT_WORDBREAK
))
if
(
!
line_fits
&&
(
format
&
DT_WORDBREAK
))
{
{
const
WCHAR
*
s
;
const
WCHAR
*
s
;
int
chars_used
;
unsigned
int
chars_used
;
TEXT_WordBreak
(
hdc
,
dest
+
seg_j
,
maxl
-
seg_j
,
&
j_in_seg
,
TEXT_WordBreak
(
hdc
,
dest
+
seg_j
,
maxl
-
seg_j
,
&
j_in_seg
,
max_seg_width
,
format
,
num_fit
,
&
chars_used
,
&
size
);
max_seg_width
,
format
,
num_fit
,
&
chars_used
,
&
size
);
line_fits
=
(
size
.
cx
<=
max_seg_width
);
line_fits
=
(
size
.
cx
<=
max_seg_width
);
...
...
dlls/user/user_main.c
View file @
c787b146
...
@@ -71,7 +71,7 @@ static BOOL load_driver(void)
...
@@ -71,7 +71,7 @@ static BOOL load_driver(void)
if
(
!
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Software
\\
Wine
\\
Drivers"
,
&
hkey
))
if
(
!
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Software
\\
Wine
\\
Drivers"
,
&
hkey
))
{
{
DWORD
type
,
count
=
sizeof
(
buffer
);
DWORD
type
,
count
=
sizeof
(
buffer
);
RegQueryValueExA
(
hkey
,
"Graphics"
,
0
,
&
type
,
buffer
,
&
count
);
RegQueryValueExA
(
hkey
,
"Graphics"
,
0
,
&
type
,
(
LPBYTE
)
buffer
,
&
count
);
RegCloseKey
(
hkey
);
RegCloseKey
(
hkey
);
}
}
...
...
dlls/user/winproc.c
View file @
c787b146
...
@@ -809,7 +809,7 @@ INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM *plpara
...
@@ -809,7 +809,7 @@ INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM *plpara
case
WM_SYSDEADCHAR
:
case
WM_SYSDEADCHAR
:
case
EM_SETPASSWORDCHAR
:
case
EM_SETPASSWORDCHAR
:
{
{
BYTE
ch
=
LOWORD
(
*
pwparam
);
CHAR
ch
=
LOWORD
(
*
pwparam
);
WCHAR
wch
;
WCHAR
wch
;
MultiByteToWideChar
(
CP_ACP
,
0
,
&
ch
,
1
,
&
wch
,
1
);
MultiByteToWideChar
(
CP_ACP
,
0
,
&
ch
,
1
,
&
wch
,
1
);
*
pwparam
=
MAKEWPARAM
(
wch
,
HIWORD
(
*
pwparam
)
);
*
pwparam
=
MAKEWPARAM
(
wch
,
HIWORD
(
*
pwparam
)
);
...
@@ -818,7 +818,7 @@ INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM *plpara
...
@@ -818,7 +818,7 @@ INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM *plpara
case
WM_IME_CHAR
:
case
WM_IME_CHAR
:
{
{
BYTE
ch
[
2
];
CHAR
ch
[
2
];
WCHAR
wch
;
WCHAR
wch
;
ch
[
0
]
=
(
*
pwparam
>>
8
);
ch
[
0
]
=
(
*
pwparam
>>
8
);
ch
[
1
]
=
*
pwparam
&
0xff
;
ch
[
1
]
=
*
pwparam
&
0xff
;
...
@@ -1106,7 +1106,7 @@ static INT WINPROC_MapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM
...
@@ -1106,7 +1106,7 @@ static INT WINPROC_MapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM
{
{
WCHAR
wch
=
LOWORD
(
*
pwparam
);
WCHAR
wch
=
LOWORD
(
*
pwparam
);
BYTE
ch
;
BYTE
ch
;
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
&
ch
,
1
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
(
LPSTR
)
&
ch
,
1
,
NULL
,
NULL
);
*
pwparam
=
MAKEWPARAM
(
ch
,
HIWORD
(
*
pwparam
)
);
*
pwparam
=
MAKEWPARAM
(
ch
,
HIWORD
(
*
pwparam
)
);
}
}
return
0
;
return
0
;
...
@@ -1116,7 +1116,7 @@ static INT WINPROC_MapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM
...
@@ -1116,7 +1116,7 @@ static INT WINPROC_MapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM
WCHAR
wch
=
LOWORD
(
*
pwparam
);
WCHAR
wch
=
LOWORD
(
*
pwparam
);
BYTE
ch
[
2
];
BYTE
ch
[
2
];
if
(
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
ch
,
2
,
NULL
,
NULL
)
==
2
)
if
(
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
(
LPSTR
)
ch
,
2
,
NULL
,
NULL
)
==
2
)
*
pwparam
=
MAKEWPARAM
(
(
ch
[
0
]
<<
8
)
|
ch
[
1
],
HIWORD
(
*
pwparam
)
);
*
pwparam
=
MAKEWPARAM
(
(
ch
[
0
]
<<
8
)
|
ch
[
1
],
HIWORD
(
*
pwparam
)
);
else
else
*
pwparam
=
MAKEWPARAM
(
ch
[
0
],
HIWORD
(
*
pwparam
)
);
*
pwparam
=
MAKEWPARAM
(
ch
[
0
],
HIWORD
(
*
pwparam
)
);
...
@@ -1734,7 +1734,7 @@ LRESULT WINPROC_UnmapMsg16To32A( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar
...
@@ -1734,7 +1734,7 @@ LRESULT WINPROC_UnmapMsg16To32A( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar
INT
WINPROC_MapMsg16To32W
(
HWND
hwnd
,
UINT16
msg16
,
WPARAM16
wParam16
,
UINT
*
pmsg32
,
INT
WINPROC_MapMsg16To32W
(
HWND
hwnd
,
UINT16
msg16
,
WPARAM16
wParam16
,
UINT
*
pmsg32
,
WPARAM
*
pwparam32
,
LPARAM
*
plparam
)
WPARAM
*
pwparam32
,
LPARAM
*
plparam
)
{
{
BYTE
ch
;
CHAR
ch
;
WCHAR
wch
;
WCHAR
wch
;
*
pmsg32
=
(
UINT
)
msg16
;
*
pmsg32
=
(
UINT
)
msg16
;
...
@@ -2805,13 +2805,13 @@ INT WINPROC_MapMsg32WTo16( HWND hwnd, UINT msg32, WPARAM wParam32,
...
@@ -2805,13 +2805,13 @@ INT WINPROC_MapMsg32WTo16( HWND hwnd, UINT msg32, WPARAM wParam32,
case
WM_CHARTOITEM
:
case
WM_CHARTOITEM
:
wch
=
LOWORD
(
wParam32
);
wch
=
LOWORD
(
wParam32
);
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
&
ch
,
1
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
(
LPSTR
)
&
ch
,
1
,
NULL
,
NULL
);
*
pwparam16
=
ch
;
*
pwparam16
=
ch
;
*
plparam
=
MAKELPARAM
(
(
HWND16
)
*
plparam
,
HIWORD
(
wParam32
)
);
*
plparam
=
MAKELPARAM
(
(
HWND16
)
*
plparam
,
HIWORD
(
wParam32
)
);
return
0
;
return
0
;
case
WM_MENUCHAR
:
case
WM_MENUCHAR
:
wch
=
LOWORD
(
wParam32
);
wch
=
LOWORD
(
wParam32
);
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
&
ch
,
1
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
(
LPSTR
)
&
ch
,
1
,
NULL
,
NULL
);
*
pwparam16
=
ch
;
*
pwparam16
=
ch
;
*
plparam
=
MAKELPARAM
(
HIWORD
(
wParam32
),
(
HMENU16
)
*
plparam
);
*
plparam
=
MAKELPARAM
(
HIWORD
(
wParam32
),
(
HMENU16
)
*
plparam
);
return
0
;
return
0
;
...
@@ -2820,7 +2820,7 @@ INT WINPROC_MapMsg32WTo16( HWND hwnd, UINT msg32, WPARAM wParam32,
...
@@ -2820,7 +2820,7 @@ INT WINPROC_MapMsg32WTo16( HWND hwnd, UINT msg32, WPARAM wParam32,
case
WM_SYSCHAR
:
case
WM_SYSCHAR
:
case
WM_SYSDEADCHAR
:
case
WM_SYSDEADCHAR
:
wch
=
wParam32
;
wch
=
wParam32
;
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
&
ch
,
1
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
(
LPSTR
)
&
ch
,
1
,
NULL
,
NULL
);
*
pwparam16
=
ch
;
*
pwparam16
=
ch
;
return
0
;
return
0
;
case
WM_IME_CHAR
:
case
WM_IME_CHAR
:
...
@@ -2828,7 +2828,7 @@ INT WINPROC_MapMsg32WTo16( HWND hwnd, UINT msg32, WPARAM wParam32,
...
@@ -2828,7 +2828,7 @@ INT WINPROC_MapMsg32WTo16( HWND hwnd, UINT msg32, WPARAM wParam32,
BYTE
ch
[
2
];
BYTE
ch
[
2
];
wch
=
wParam32
;
wch
=
wParam32
;
if
(
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
ch
,
2
,
NULL
,
NULL
)
==
2
)
if
(
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
(
LPSTR
)
ch
,
2
,
NULL
,
NULL
)
==
2
)
*
pwparam16
=
(
ch
[
0
]
<<
8
)
|
ch
[
1
];
*
pwparam16
=
(
ch
[
0
]
<<
8
)
|
ch
[
1
];
else
else
*
pwparam16
=
ch
[
0
];
*
pwparam16
=
ch
[
0
];
...
...
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