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
9a295e7f
Commit
9a295e7f
authored
May 30, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix some compilation warnings in 64-bit mode.
parent
545a7130
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
42 additions
and
42 deletions
+42
-42
caret.c
dlls/user32/caret.c
+1
-1
dde_misc.c
dlls/user32/dde_misc.c
+1
-1
dde_private.h
dlls/user32/dde_private.h
+1
-1
dde_server.c
dlls/user32/dde_server.c
+1
-1
edit.c
dlls/user32/edit.c
+6
-6
mdi.c
dlls/user32/mdi.c
+1
-1
menu.c
dlls/user32/menu.c
+1
-1
message.c
dlls/user32/message.c
+1
-1
msg16.c
dlls/user32/msg16.c
+1
-1
sysparams.c
dlls/user32/sysparams.c
+14
-14
uitools.c
dlls/user32/uitools.c
+1
-1
user_private.h
dlls/user32/user_private.h
+3
-3
win.c
dlls/user32/win.c
+2
-2
winproc.c
dlls/user32/winproc.c
+8
-8
No files found.
dlls/user32/caret.c
View file @
9a295e7f
...
@@ -156,7 +156,7 @@ BOOL WINAPI CreateCaret( HWND hwnd, HBITMAP bitmap, INT width, INT height )
...
@@ -156,7 +156,7 @@ BOOL WINAPI CreateCaret( HWND hwnd, HBITMAP bitmap, INT width, INT height )
{
{
HBITMAP
hPrevBmp
=
SelectObject
(
hMemDC
,
hBmp
);
HBITMAP
hPrevBmp
=
SelectObject
(
hMemDC
,
hBmp
);
SetRect
(
&
r
,
0
,
0
,
width
,
height
);
SetRect
(
&
r
,
0
,
0
,
width
,
height
);
FillRect
(
hMemDC
,
&
r
,
(
HBRUSH
)
((
bitmap
?
COLOR_GRAYTEXT
:
COLOR_WINDOW
)
+
1
));
FillRect
(
hMemDC
,
&
r
,
ULongToHandle
((
bitmap
?
COLOR_GRAYTEXT
:
COLOR_WINDOW
)
+
1
));
SelectObject
(
hMemDC
,
hPrevBmp
);
SelectObject
(
hMemDC
,
hPrevBmp
);
}
}
DeleteDC
(
hMemDC
);
DeleteDC
(
hMemDC
);
...
...
dlls/user32/dde_misc.c
View file @
9a295e7f
...
@@ -1984,7 +1984,7 @@ WDML_CONV* WDML_GetConvFromWnd(HWND hWnd)
...
@@ -1984,7 +1984,7 @@ WDML_CONV* WDML_GetConvFromWnd(HWND hWnd)
*
*
*/
*/
BOOL
WDML_PostAck
(
WDML_CONV
*
pConv
,
WDML_SIDE
side
,
WORD
appRetCode
,
BOOL
WDML_PostAck
(
WDML_CONV
*
pConv
,
WDML_SIDE
side
,
WORD
appRetCode
,
BOOL
fBusy
,
BOOL
fAck
,
UINT
pmt
,
LPARAM
lParam
,
UINT
oldMsg
)
BOOL
fBusy
,
BOOL
fAck
,
UINT
_PTR
pmt
,
LPARAM
lParam
,
UINT
oldMsg
)
{
{
DDEACK
ddeAck
;
DDEACK
ddeAck
;
HWND
from
,
to
;
HWND
from
,
to
;
...
...
dlls/user32/dde_private.h
View file @
9a295e7f
...
@@ -210,7 +210,7 @@ extern WDML_CONV* WDML_GetConvFromWnd(HWND hWnd);
...
@@ -210,7 +210,7 @@ extern WDML_CONV* WDML_GetConvFromWnd(HWND hWnd);
extern
WDML_CONV
*
WDML_FindConv
(
WDML_INSTANCE
*
pInstance
,
WDML_SIDE
side
,
extern
WDML_CONV
*
WDML_FindConv
(
WDML_INSTANCE
*
pInstance
,
WDML_SIDE
side
,
HSZ
hszService
,
HSZ
hszTopic
);
HSZ
hszService
,
HSZ
hszTopic
);
extern
BOOL
WDML_PostAck
(
WDML_CONV
*
pConv
,
WDML_SIDE
side
,
WORD
appRetCode
,
extern
BOOL
WDML_PostAck
(
WDML_CONV
*
pConv
,
WDML_SIDE
side
,
WORD
appRetCode
,
BOOL
fBusy
,
BOOL
fAck
,
UINT
pmt
,
LPARAM
lParam
,
UINT
oldMsg
);
BOOL
fBusy
,
BOOL
fAck
,
UINT
_PTR
pmt
,
LPARAM
lParam
,
UINT
oldMsg
);
extern
void
WDML_AddLink
(
WDML_INSTANCE
*
pInstance
,
HCONV
hConv
,
WDML_SIDE
side
,
extern
void
WDML_AddLink
(
WDML_INSTANCE
*
pInstance
,
HCONV
hConv
,
WDML_SIDE
side
,
UINT
wType
,
HSZ
hszItem
,
UINT
wFmt
);
UINT
wType
,
HSZ
hszItem
,
UINT
wFmt
);
extern
WDML_LINK
*
WDML_FindLink
(
WDML_INSTANCE
*
pInstance
,
HCONV
hConv
,
WDML_SIDE
side
,
extern
WDML_LINK
*
WDML_FindLink
(
WDML_INSTANCE
*
pInstance
,
HCONV
hConv
,
WDML_SIDE
side
,
...
...
dlls/user32/dde_server.c
View file @
9a295e7f
...
@@ -800,7 +800,7 @@ static WDML_QUEUE_STATE WDML_ServerHandleExecute(WDML_CONV* pConv, WDML_XACT* pX
...
@@ -800,7 +800,7 @@ static WDML_QUEUE_STATE WDML_ServerHandleExecute(WDML_CONV* pConv, WDML_XACT* pX
case
DDE_FNOTPROCESSED
:
case
DDE_FNOTPROCESSED
:
break
;
break
;
}
}
WDML_PostAck
(
pConv
,
WDML_SERVER_SIDE
,
0
,
fBusy
,
fAck
,
(
UINT
)
pXAct
->
hMem
,
0
,
0
);
WDML_PostAck
(
pConv
,
WDML_SERVER_SIDE
,
0
,
fBusy
,
fAck
,
(
UINT
_PTR
)
pXAct
->
hMem
,
0
,
0
);
return
WDML_QS_HANDLED
;
return
WDML_QS_HANDLED
;
}
}
...
...
dlls/user32/edit.c
View file @
9a295e7f
...
@@ -1686,7 +1686,7 @@ static LPWSTR EDIT_GetPasswordPointer_SL(EDITSTATE *es)
...
@@ -1686,7 +1686,7 @@ static LPWSTR EDIT_GetPasswordPointer_SL(EDITSTATE *es)
*/
*/
static
void
EDIT_LockBuffer
(
EDITSTATE
*
es
)
static
void
EDIT_LockBuffer
(
EDITSTATE
*
es
)
{
{
STACK16FRAME
*
stack16
=
MapSL
(
(
SEGPTR
)
NtCurrentTeb
()
->
WOW32Reserved
);
STACK16FRAME
*
stack16
=
MapSL
(
PtrToUlong
(
NtCurrentTeb
()
->
WOW32Reserved
)
);
HINSTANCE16
hInstance
=
GetWindowLongPtrW
(
es
->
hwndSelf
,
GWLP_HINSTANCE
);
HINSTANCE16
hInstance
=
GetWindowLongPtrW
(
es
->
hwndSelf
,
GWLP_HINSTANCE
);
if
(
!
es
->
text
)
{
if
(
!
es
->
text
)
{
...
@@ -2487,7 +2487,7 @@ static void EDIT_UnlockBuffer(EDITSTATE *es, BOOL force)
...
@@ -2487,7 +2487,7 @@ static void EDIT_UnlockBuffer(EDITSTATE *es, BOOL force)
TRACE
(
"Synchronizing with 16-bit ANSI buffer
\n
"
);
TRACE
(
"Synchronizing with 16-bit ANSI buffer
\n
"
);
TRACE
(
"%d WCHARs translated to %d bytes
\n
"
,
countW
,
countA_new
);
TRACE
(
"%d WCHARs translated to %d bytes
\n
"
,
countW
,
countA_new
);
stack16
=
MapSL
(
(
SEGPTR
)
NtCurrentTeb
()
->
WOW32Reserved
);
stack16
=
MapSL
(
PtrToUlong
(
NtCurrentTeb
()
->
WOW32Reserved
)
);
oldDS
=
stack16
->
ds
;
oldDS
=
stack16
->
ds
;
stack16
->
ds
=
GetWindowLongPtrW
(
es
->
hwndSelf
,
GWLP_HINSTANCE
);
stack16
->
ds
=
GetWindowLongPtrW
(
es
->
hwndSelf
,
GWLP_HINSTANCE
);
...
@@ -2760,7 +2760,7 @@ static HLOCAL16 EDIT_EM_GetHandle16(EDITSTATE *es)
...
@@ -2760,7 +2760,7 @@ static HLOCAL16 EDIT_EM_GetHandle16(EDITSTATE *es)
if
(
es
->
hloc16
)
if
(
es
->
hloc16
)
return
es
->
hloc16
;
return
es
->
hloc16
;
stack16
=
MapSL
(
(
SEGPTR
)
NtCurrentTeb
()
->
WOW32Reserved
);
stack16
=
MapSL
(
PtrToUlong
(
NtCurrentTeb
()
->
WOW32Reserved
)
);
oldDS
=
stack16
->
ds
;
oldDS
=
stack16
->
ds
;
stack16
->
ds
=
GetWindowLongPtrW
(
es
->
hwndSelf
,
GWLP_HINSTANCE
);
stack16
->
ds
=
GetWindowLongPtrW
(
es
->
hwndSelf
,
GWLP_HINSTANCE
);
...
@@ -3506,7 +3506,7 @@ static void EDIT_EM_SetHandle(EDITSTATE *es, HLOCAL hloc)
...
@@ -3506,7 +3506,7 @@ static void EDIT_EM_SetHandle(EDITSTATE *es, HLOCAL hloc)
if
(
es
->
hloc16
)
if
(
es
->
hloc16
)
{
{
STACK16FRAME
*
stack16
=
MapSL
(
(
SEGPTR
)
NtCurrentTeb
()
->
WOW32Reserved
);
STACK16FRAME
*
stack16
=
MapSL
(
PtrToUlong
(
NtCurrentTeb
()
->
WOW32Reserved
)
);
HANDLE16
oldDS
=
stack16
->
ds
;
HANDLE16
oldDS
=
stack16
->
ds
;
stack16
->
ds
=
GetWindowLongPtrW
(
es
->
hwndSelf
,
GWLP_HINSTANCE
);
stack16
->
ds
=
GetWindowLongPtrW
(
es
->
hwndSelf
,
GWLP_HINSTANCE
);
...
@@ -3578,7 +3578,7 @@ static void EDIT_EM_SetHandle(EDITSTATE *es, HLOCAL hloc)
...
@@ -3578,7 +3578,7 @@ static void EDIT_EM_SetHandle(EDITSTATE *es, HLOCAL hloc)
*/
*/
static
void
EDIT_EM_SetHandle16
(
EDITSTATE
*
es
,
HLOCAL16
hloc
)
static
void
EDIT_EM_SetHandle16
(
EDITSTATE
*
es
,
HLOCAL16
hloc
)
{
{
STACK16FRAME
*
stack16
=
MapSL
(
(
SEGPTR
)
NtCurrentTeb
()
->
WOW32Reserved
);
STACK16FRAME
*
stack16
=
MapSL
(
PtrToUlong
(
NtCurrentTeb
()
->
WOW32Reserved
)
);
HINSTANCE16
hInstance
=
GetWindowLongPtrW
(
es
->
hwndSelf
,
GWLP_HINSTANCE
);
HINSTANCE16
hInstance
=
GetWindowLongPtrW
(
es
->
hwndSelf
,
GWLP_HINSTANCE
);
HANDLE16
oldDS
=
stack16
->
ds
;
HANDLE16
oldDS
=
stack16
->
ds
;
INT
countW
,
countA
;
INT
countW
,
countA
;
...
@@ -4235,7 +4235,7 @@ static LRESULT EDIT_WM_Destroy(EDITSTATE *es)
...
@@ -4235,7 +4235,7 @@ static LRESULT EDIT_WM_Destroy(EDITSTATE *es)
LocalFree
(
es
->
hloc32A
);
LocalFree
(
es
->
hloc32A
);
}
}
if
(
es
->
hloc16
)
{
if
(
es
->
hloc16
)
{
STACK16FRAME
*
stack16
=
MapSL
(
(
SEGPTR
)
NtCurrentTeb
()
->
WOW32Reserved
);
STACK16FRAME
*
stack16
=
MapSL
(
PtrToUlong
(
NtCurrentTeb
()
->
WOW32Reserved
)
);
HANDLE16
oldDS
=
stack16
->
ds
;
HANDLE16
oldDS
=
stack16
->
ds
;
stack16
->
ds
=
GetWindowLongPtrW
(
es
->
hwndSelf
,
GWLP_HINSTANCE
);
stack16
->
ds
=
GetWindowLongPtrW
(
es
->
hwndSelf
,
GWLP_HINSTANCE
);
...
...
dlls/user32/mdi.c
View file @
9a295e7f
...
@@ -1062,7 +1062,7 @@ static LRESULT MDIClientWndProc_common( HWND hwnd, UINT message,
...
@@ -1062,7 +1062,7 @@ static LRESULT MDIClientWndProc_common( HWND hwnd, UINT message,
}
}
else
else
{
{
LPCLIENTCREATESTRUCT16
ccs
=
MapSL
(
(
SEGPTR
)
cs
->
lpCreateParams
);
LPCLIENTCREATESTRUCT16
ccs
=
MapSL
(
PtrToUlong
(
cs
->
lpCreateParams
)
);
ci
->
hWindowMenu
=
HMENU_32
(
ccs
->
hWindowMenu
);
ci
->
hWindowMenu
=
HMENU_32
(
ccs
->
hWindowMenu
);
ci
->
idFirstChild
=
ccs
->
idFirstChild
;
ci
->
idFirstChild
=
ccs
->
idFirstChild
;
}
}
...
...
dlls/user32/menu.c
View file @
9a295e7f
...
@@ -4245,7 +4245,7 @@ HMENU16 WINAPI LoadMenu16( HINSTANCE16 instance, LPCSTR name )
...
@@ -4245,7 +4245,7 @@ HMENU16 WINAPI LoadMenu16( HINSTANCE16 instance, LPCSTR name )
HGLOBAL16
handle
;
HGLOBAL16
handle
;
HMENU16
hMenu
;
HMENU16
hMenu
;
if
(
HIWORD
(
name
)
&&
name
[
0
]
==
'#'
)
name
=
(
LPCSTR
)
atoi
(
name
+
1
);
if
(
HIWORD
(
name
)
&&
name
[
0
]
==
'#'
)
name
=
ULongToPtr
(
atoi
(
name
+
1
)
);
if
(
!
name
)
return
0
;
if
(
!
name
)
return
0
;
instance
=
GetExePtr
(
instance
);
instance
=
GetExePtr
(
instance
);
...
...
dlls/user32/message.c
View file @
9a295e7f
...
@@ -1485,7 +1485,7 @@ static BOOL unpack_dde_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM
...
@@ -1485,7 +1485,7 @@ static BOOL unpack_dde_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM
{
{
memcpy
(
ptr
,
*
buffer
,
size
);
memcpy
(
ptr
,
*
buffer
,
size
);
GlobalUnlock
(
hMem
);
GlobalUnlock
(
hMem
);
TRACE
(
"exec: pairing c=%08lx s=%
08x
\n
"
,
*
lparam
,
(
DWORD
)
hMem
);
TRACE
(
"exec: pairing c=%08lx s=%
p
\n
"
,
*
lparam
,
hMem
);
if
(
!
dde_add_pair
(
(
HGLOBAL
)
*
lparam
,
hMem
))
if
(
!
dde_add_pair
(
(
HGLOBAL
)
*
lparam
,
hMem
))
{
{
GlobalFree
(
hMem
);
GlobalFree
(
hMem
);
...
...
dlls/user32/msg16.c
View file @
9a295e7f
...
@@ -194,7 +194,7 @@ LRESULT WINAPI DefWindowProc16( HWND16 hwnd16, UINT16 msg, WPARAM16 wParam, LPAR
...
@@ -194,7 +194,7 @@ LRESULT WINAPI DefWindowProc16( HWND16 hwnd16, UINT16 msg, WPARAM16 wParam, LPAR
CREATESTRUCT16
*
cs16
=
MapSL
(
lParam
);
CREATESTRUCT16
*
cs16
=
MapSL
(
lParam
);
CREATESTRUCTA
cs32
;
CREATESTRUCTA
cs32
;
cs32
.
lpCreateParams
=
(
LPVOID
)
cs16
->
lpCreateParams
;
cs32
.
lpCreateParams
=
ULongToPtr
(
cs16
->
lpCreateParams
)
;
cs32
.
hInstance
=
HINSTANCE_32
(
cs16
->
hInstance
);
cs32
.
hInstance
=
HINSTANCE_32
(
cs16
->
hInstance
);
cs32
.
hMenu
=
HMENU_32
(
cs16
->
hMenu
);
cs32
.
hMenu
=
HMENU_32
(
cs16
->
hMenu
);
cs32
.
hwndParent
=
WIN_Handle32
(
cs16
->
hwndParent
);
cs32
.
hwndParent
=
WIN_Handle32
(
cs16
->
hwndParent
);
...
...
dlls/user32/sysparams.c
View file @
9a295e7f
...
@@ -2136,7 +2136,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
...
@@ -2136,7 +2136,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
break
;
break
;
case
SPI_SETMENUANIMATION
:
/* 0x1003 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
case
SPI_SETMENUANIMATION
:
/* 0x1003 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
ret
=
set_user_pref_param
(
0
,
0x02
,
(
BOOL
)
pvParam
,
fWinIni
);
ret
=
set_user_pref_param
(
0
,
0x02
,
PtrToUlong
(
pvParam
)
,
fWinIni
);
break
;
break
;
case
SPI_GETCOMBOBOXANIMATION
:
/* 0x1004 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
case
SPI_GETCOMBOBOXANIMATION
:
/* 0x1004 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
...
@@ -2144,7 +2144,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
...
@@ -2144,7 +2144,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
break
;
break
;
case
SPI_SETCOMBOBOXANIMATION
:
/* 0x1005 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
case
SPI_SETCOMBOBOXANIMATION
:
/* 0x1005 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
ret
=
set_user_pref_param
(
0
,
0x04
,
(
BOOL
)
pvParam
,
fWinIni
);
ret
=
set_user_pref_param
(
0
,
0x04
,
PtrToUlong
(
pvParam
)
,
fWinIni
);
break
;
break
;
case
SPI_GETLISTBOXSMOOTHSCROLLING
:
/* 0x1006 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
case
SPI_GETLISTBOXSMOOTHSCROLLING
:
/* 0x1006 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
...
@@ -2152,7 +2152,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
...
@@ -2152,7 +2152,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
break
;
break
;
case
SPI_SETLISTBOXSMOOTHSCROLLING
:
/* 0x1007 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
case
SPI_SETLISTBOXSMOOTHSCROLLING
:
/* 0x1007 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
ret
=
set_user_pref_param
(
0
,
0x08
,
(
BOOL
)
pvParam
,
fWinIni
);
ret
=
set_user_pref_param
(
0
,
0x08
,
PtrToUlong
(
pvParam
)
,
fWinIni
);
break
;
break
;
case
SPI_GETGRADIENTCAPTIONS
:
case
SPI_GETGRADIENTCAPTIONS
:
...
@@ -2160,7 +2160,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
...
@@ -2160,7 +2160,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
break
;
break
;
case
SPI_SETGRADIENTCAPTIONS
:
case
SPI_SETGRADIENTCAPTIONS
:
ret
=
set_user_pref_param
(
0
,
0x10
,
(
BOOL
)
pvParam
,
fWinIni
);
ret
=
set_user_pref_param
(
0
,
0x10
,
PtrToUlong
(
pvParam
)
,
fWinIni
);
break
;
break
;
case
SPI_GETKEYBOARDCUES
:
case
SPI_GETKEYBOARDCUES
:
...
@@ -2168,7 +2168,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
...
@@ -2168,7 +2168,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
break
;
break
;
case
SPI_SETKEYBOARDCUES
:
case
SPI_SETKEYBOARDCUES
:
ret
=
set_user_pref_param
(
0
,
0x20
,
(
BOOL
)
pvParam
,
fWinIni
);
ret
=
set_user_pref_param
(
0
,
0x20
,
PtrToUlong
(
pvParam
)
,
fWinIni
);
break
;
break
;
WINE_SPI_FIXME
(
SPI_GETACTIVEWNDTRKZORDER
);
/* 0x100C _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
WINE_SPI_FIXME
(
SPI_GETACTIVEWNDTRKZORDER
);
/* 0x100C _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
...
@@ -2178,7 +2178,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
...
@@ -2178,7 +2178,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
break
;
break
;
case
SPI_SETHOTTRACKING
:
case
SPI_SETHOTTRACKING
:
ret
=
set_user_pref_param
(
0
,
0x80
,
(
BOOL
)
pvParam
,
fWinIni
);
ret
=
set_user_pref_param
(
0
,
0x80
,
PtrToUlong
(
pvParam
)
,
fWinIni
);
break
;
break
;
WINE_SPI_FIXME
(
SPI_GETMENUFADE
);
/* 0x1012 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
WINE_SPI_FIXME
(
SPI_GETMENUFADE
);
/* 0x1012 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
...
@@ -2188,7 +2188,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
...
@@ -2188,7 +2188,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
break
;
break
;
case
SPI_SETSELECTIONFADE
:
/* 0x1015 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
case
SPI_SETSELECTIONFADE
:
/* 0x1015 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
ret
=
set_user_pref_param
(
1
,
0x04
,
(
BOOL
)
pvParam
,
fWinIni
);
ret
=
set_user_pref_param
(
1
,
0x04
,
PtrToUlong
(
pvParam
)
,
fWinIni
);
break
;
break
;
case
SPI_GETTOOLTIPANIMATION
:
/* 0x1016 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
case
SPI_GETTOOLTIPANIMATION
:
/* 0x1016 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
...
@@ -2196,7 +2196,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
...
@@ -2196,7 +2196,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
break
;
break
;
case
SPI_SETTOOLTIPANIMATION
:
/* 0x1017 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
case
SPI_SETTOOLTIPANIMATION
:
/* 0x1017 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
ret
=
set_user_pref_param
(
1
,
0x08
,
(
BOOL
)
pvParam
,
fWinIni
);
ret
=
set_user_pref_param
(
1
,
0x08
,
PtrToUlong
(
pvParam
)
,
fWinIni
);
break
;
break
;
case
SPI_GETTOOLTIPFADE
:
/* 0x1018 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
case
SPI_GETTOOLTIPFADE
:
/* 0x1018 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
...
@@ -2204,7 +2204,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
...
@@ -2204,7 +2204,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
break
;
break
;
case
SPI_SETTOOLTIPFADE
:
/* 0x1019 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
case
SPI_SETTOOLTIPFADE
:
/* 0x1019 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
ret
=
set_user_pref_param
(
1
,
0x10
,
(
BOOL
)
pvParam
,
fWinIni
);
ret
=
set_user_pref_param
(
1
,
0x10
,
PtrToUlong
(
pvParam
)
,
fWinIni
);
break
;
break
;
case
SPI_GETCURSORSHADOW
:
/* 0x101A _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
case
SPI_GETCURSORSHADOW
:
/* 0x101A _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
...
@@ -2212,7 +2212,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
...
@@ -2212,7 +2212,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
break
;
break
;
case
SPI_SETCURSORSHADOW
:
/* 0x101B _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
case
SPI_SETCURSORSHADOW
:
/* 0x101B _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
ret
=
set_user_pref_param
(
1
,
0x20
,
(
BOOL
)
pvParam
,
fWinIni
);
ret
=
set_user_pref_param
(
1
,
0x20
,
PtrToUlong
(
pvParam
)
,
fWinIni
);
break
;
break
;
WINE_SPI_FIXME
(
SPI_GETMOUSESONAR
);
/* 0x101C _WIN32_WINNT >= 0x510 || _WIN32_WINDOW >= 0x490*/
WINE_SPI_FIXME
(
SPI_GETMOUSESONAR
);
/* 0x101C _WIN32_WINNT >= 0x510 || _WIN32_WINDOW >= 0x490*/
...
@@ -2226,7 +2226,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
...
@@ -2226,7 +2226,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
break
;
break
;
case
SPI_SETFLATMENU
:
case
SPI_SETFLATMENU
:
ret
=
set_user_pref_param
(
2
,
0x02
,
(
BOOL
)
pvParam
,
fWinIni
);
ret
=
set_user_pref_param
(
2
,
0x02
,
PtrToUlong
(
pvParam
)
,
fWinIni
);
break
;
break
;
WINE_SPI_FIXME
(
SPI_GETDROPSHADOW
);
/* 0x1024 _WIN32_WINNT >= 0x510 */
WINE_SPI_FIXME
(
SPI_GETDROPSHADOW
);
/* 0x1024 _WIN32_WINNT >= 0x510 */
...
@@ -2239,7 +2239,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
...
@@ -2239,7 +2239,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
case
SPI_SETUIEFFECTS
:
case
SPI_SETUIEFFECTS
:
/* FIXME: this probably should mask other UI effect values when unset */
/* FIXME: this probably should mask other UI effect values when unset */
ret
=
set_user_pref_param
(
3
,
0x80
,
(
BOOL
)
pvParam
,
fWinIni
);
ret
=
set_user_pref_param
(
3
,
0x80
,
PtrToUlong
(
pvParam
)
,
fWinIni
);
break
;
break
;
WINE_SPI_FIXME
(
SPI_GETFOREGROUNDLOCKTIMEOUT
);
/* 0x2000 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
WINE_SPI_FIXME
(
SPI_GETFOREGROUNDLOCKTIMEOUT
);
/* 0x2000 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
...
@@ -2904,11 +2904,11 @@ DWORD WINAPI SetSysColorsTemp( const COLORREF *pPens, const HBRUSH *pBrushes, DW
...
@@ -2904,11 +2904,11 @@ DWORD WINAPI SetSysColorsTemp( const COLORREF *pPens, const HBRUSH *pBrushes, DW
SysColorBrushes
[
i
]
=
pBrushes
[
i
];
SysColorBrushes
[
i
]
=
pBrushes
[
i
];
}
}
return
(
DWORD
)
pOldCol
;
return
(
DWORD
)
pOldCol
;
/* FIXME: pointer truncation */
}
}
if
(
!
pPens
&&
!
pBrushes
)
/* "restore" call */
if
(
!
pPens
&&
!
pBrushes
)
/* "restore" call */
{
{
LPVOID
pOldCol
=
(
LPVOID
)
n
;
LPVOID
pOldCol
=
(
LPVOID
)
n
;
/* FIXME: not 64-bit safe */
LPVOID
p
=
pOldCol
;
LPVOID
p
=
pOldCol
;
DWORD
nCount
=
*
(
DWORD
*
)
p
;
DWORD
nCount
=
*
(
DWORD
*
)
p
;
p
=
(
char
*
)
p
+
sizeof
(
DWORD
);
p
=
(
char
*
)
p
+
sizeof
(
DWORD
);
...
...
dlls/user32/uitools.c
View file @
9a295e7f
...
@@ -1428,7 +1428,7 @@ INT WINAPI FillRect( HDC hdc, const RECT *rect, HBRUSH hbrush )
...
@@ -1428,7 +1428,7 @@ INT WINAPI FillRect( HDC hdc, const RECT *rect, HBRUSH hbrush )
{
{
HBRUSH
prevBrush
;
HBRUSH
prevBrush
;
if
(
hbrush
<=
(
HBRUSH
)
(
COLOR_MAX
+
1
))
hbrush
=
GetSysColorBrush
(
(
INT
)
hbrush
-
1
);
if
(
hbrush
<=
(
HBRUSH
)
(
COLOR_MAX
+
1
))
hbrush
=
GetSysColorBrush
(
HandleToULong
(
hbrush
)
-
1
);
if
(
!
(
prevBrush
=
SelectObject
(
hdc
,
hbrush
)))
return
0
;
if
(
!
(
prevBrush
=
SelectObject
(
hdc
,
hbrush
)))
return
0
;
PatBlt
(
hdc
,
rect
->
left
,
rect
->
top
,
PatBlt
(
hdc
,
rect
->
left
,
rect
->
top
,
...
...
dlls/user32/user_private.h
View file @
9a295e7f
...
@@ -35,7 +35,7 @@ extern WORD USER_HeapSel;
...
@@ -35,7 +35,7 @@ extern WORD USER_HeapSel;
static
inline
HLOCAL16
LOCAL_Alloc
(
HANDLE16
ds
,
UINT16
flags
,
WORD
size
)
static
inline
HLOCAL16
LOCAL_Alloc
(
HANDLE16
ds
,
UINT16
flags
,
WORD
size
)
{
{
STACK16FRAME
*
stack16
=
MapSL
(
(
SEGPTR
)
NtCurrentTeb
()
->
WOW32Reserved
);
STACK16FRAME
*
stack16
=
MapSL
(
PtrToUlong
(
NtCurrentTeb
()
->
WOW32Reserved
)
);
HANDLE16
oldDS
=
stack16
->
ds
;
HANDLE16
oldDS
=
stack16
->
ds
;
HLOCAL16
ret
;
HLOCAL16
ret
;
...
@@ -47,7 +47,7 @@ static inline HLOCAL16 LOCAL_Alloc( HANDLE16 ds, UINT16 flags, WORD size )
...
@@ -47,7 +47,7 @@ static inline HLOCAL16 LOCAL_Alloc( HANDLE16 ds, UINT16 flags, WORD size )
static
inline
HLOCAL16
LOCAL_ReAlloc
(
HANDLE16
ds
,
HLOCAL16
handle
,
WORD
size
,
UINT16
flags
)
static
inline
HLOCAL16
LOCAL_ReAlloc
(
HANDLE16
ds
,
HLOCAL16
handle
,
WORD
size
,
UINT16
flags
)
{
{
STACK16FRAME
*
stack16
=
MapSL
(
(
SEGPTR
)
NtCurrentTeb
()
->
WOW32Reserved
);
STACK16FRAME
*
stack16
=
MapSL
(
PtrToUlong
(
NtCurrentTeb
()
->
WOW32Reserved
)
);
HANDLE16
oldDS
=
stack16
->
ds
;
HANDLE16
oldDS
=
stack16
->
ds
;
HLOCAL16
ret
;
HLOCAL16
ret
;
...
@@ -59,7 +59,7 @@ static inline HLOCAL16 LOCAL_ReAlloc( HANDLE16 ds, HLOCAL16 handle, WORD size,
...
@@ -59,7 +59,7 @@ static inline HLOCAL16 LOCAL_ReAlloc( HANDLE16 ds, HLOCAL16 handle, WORD size,
static
inline
HLOCAL16
LOCAL_Free
(
HANDLE16
ds
,
HLOCAL16
handle
)
static
inline
HLOCAL16
LOCAL_Free
(
HANDLE16
ds
,
HLOCAL16
handle
)
{
{
STACK16FRAME
*
stack16
=
MapSL
(
(
SEGPTR
)
NtCurrentTeb
()
->
WOW32Reserved
);
STACK16FRAME
*
stack16
=
MapSL
(
PtrToUlong
(
NtCurrentTeb
()
->
WOW32Reserved
)
);
HANDLE16
oldDS
=
stack16
->
ds
;
HANDLE16
oldDS
=
stack16
->
ds
;
HLOCAL16
ret
;
HLOCAL16
ret
;
...
...
dlls/user32/win.c
View file @
9a295e7f
...
@@ -678,7 +678,7 @@ static void WIN_FixCoordinates( CREATESTRUCTA *cs, INT *sw)
...
@@ -678,7 +678,7 @@ static void WIN_FixCoordinates( CREATESTRUCTA *cs, INT *sw)
UINT
id
=
0
;
UINT
id
=
0
;
MDI_CalcDefaultChildPos
(
cs
->
hwndParent
,
-
1
,
pos
,
0
,
&
id
);
MDI_CalcDefaultChildPos
(
cs
->
hwndParent
,
-
1
,
pos
,
0
,
&
id
);
if
(
!
(
cs
->
style
&
WS_POPUP
))
cs
->
hMenu
=
(
HMENU
)
id
;
if
(
!
(
cs
->
style
&
WS_POPUP
))
cs
->
hMenu
=
ULongToHandle
(
id
)
;
TRACE
(
"MDI child id %04x
\n
"
,
id
);
TRACE
(
"MDI child id %04x
\n
"
,
id
);
}
}
...
@@ -2125,7 +2125,7 @@ LONG WINAPI SetWindowLong16( HWND16 hwnd, INT16 offset, LONG newval )
...
@@ -2125,7 +2125,7 @@ LONG WINAPI SetWindowLong16( HWND16 hwnd, INT16 offset, LONG newval )
if
(
is_winproc
)
if
(
is_winproc
)
{
{
WNDPROC
new_proc
=
WINPROC_AllocProc16
(
(
WNDPROC16
)
newval
);
WNDPROC
new_proc
=
WINPROC_AllocProc16
(
(
WNDPROC16
)
newval
);
WNDPROC
old_proc
=
(
WNDPROC
)
SetWindowLongA
(
WIN_Handle32
(
hwnd
),
offset
,
(
LONG_PTR
)
new_proc
);
WNDPROC
old_proc
=
(
WNDPROC
)
SetWindowLong
Ptr
A
(
WIN_Handle32
(
hwnd
),
offset
,
(
LONG_PTR
)
new_proc
);
return
(
LONG
)
WINPROC_GetProc16
(
(
WNDPROC
)
old_proc
,
FALSE
);
return
(
LONG
)
WINPROC_GetProc16
(
(
WNDPROC
)
old_proc
,
FALSE
);
}
}
else
return
SetWindowLongA
(
WIN_Handle32
(
hwnd
),
offset
,
newval
);
else
return
SetWindowLongA
(
WIN_Handle32
(
hwnd
),
offset
,
newval
);
...
...
dlls/user32/winproc.c
View file @
9a295e7f
...
@@ -530,7 +530,7 @@ static LRESULT call_window_proc16( HWND16 hwnd, UINT16 msg, WPARAM16 wParam, LPA
...
@@ -530,7 +530,7 @@ static LRESULT call_window_proc16( HWND16 hwnd, UINT16 msg, WPARAM16 wParam, LPA
if
(
size
)
if
(
size
)
{
{
memcpy
(
&
args
.
u
,
MapSL
(
lParam
),
size
);
memcpy
(
&
args
.
u
,
MapSL
(
lParam
),
size
);
lParam
=
(
SEGPTR
)
NtCurrentTeb
()
->
WOW32Reserved
-
size
;
lParam
=
PtrToUlong
(
NtCurrentTeb
()
->
WOW32Reserved
)
-
size
;
}
}
}
}
...
@@ -711,7 +711,7 @@ static inline BOOL WINPROC_TestLBForStr( HWND hwnd, UINT msg )
...
@@ -711,7 +711,7 @@ static inline BOOL WINPROC_TestLBForStr( HWND hwnd, UINT msg )
}
}
static
UINT
convert_handle_16_to_32
(
HANDLE16
src
,
unsigned
int
flags
)
static
UINT
_PTR
convert_handle_16_to_32
(
HANDLE16
src
,
unsigned
int
flags
)
{
{
HANDLE
dst
;
HANDLE
dst
;
UINT
sz
=
GlobalSize16
(
src
);
UINT
sz
=
GlobalSize16
(
src
);
...
@@ -725,10 +725,10 @@ static UINT convert_handle_16_to_32(HANDLE16 src, unsigned int flags)
...
@@ -725,10 +725,10 @@ static UINT convert_handle_16_to_32(HANDLE16 src, unsigned int flags)
GlobalUnlock16
(
src
);
GlobalUnlock16
(
src
);
GlobalUnlock
(
dst
);
GlobalUnlock
(
dst
);
return
(
UINT
)
dst
;
return
(
UINT
_PTR
)
dst
;
}
}
static
HANDLE16
convert_handle_32_to_16
(
UINT
src
,
unsigned
int
flags
)
static
HANDLE16
convert_handle_32_to_16
(
UINT
_PTR
src
,
unsigned
int
flags
)
{
{
HANDLE16
dst
;
HANDLE16
dst
;
UINT
sz
=
GlobalSize
((
HANDLE
)
src
);
UINT
sz
=
GlobalSize
((
HANDLE
)
src
);
...
@@ -1538,7 +1538,7 @@ LRESULT WINPROC_CallProc16To32A( winproc_callback_t callback, HWND16 hwnd, UINT1
...
@@ -1538,7 +1538,7 @@ LRESULT WINPROC_CallProc16To32A( winproc_callback_t callback, HWND16 hwnd, UINT1
case
WM_DDE_POKE
:
case
WM_DDE_POKE
:
{
{
HANDLE16
lo16
=
LOWORD
(
lParam
);
HANDLE16
lo16
=
LOWORD
(
lParam
);
UINT
lo32
=
0
;
UINT
_PTR
lo32
=
0
;
if
(
lo16
&&
!
(
lo32
=
convert_handle_16_to_32
(
lo16
,
GMEM_DDESHARE
)))
break
;
if
(
lo16
&&
!
(
lo32
=
convert_handle_16_to_32
(
lo16
,
GMEM_DDESHARE
)))
break
;
lParam
=
PackDDElParam
(
msg
,
lo32
,
HIWORD
(
lParam
)
);
lParam
=
PackDDElParam
(
msg
,
lo32
,
HIWORD
(
lParam
)
);
ret
=
callback
(
hwnd32
,
msg
,
(
WPARAM
)
WIN_Handle32
(
wParam
),
lParam
,
result
,
arg
);
ret
=
callback
(
hwnd32
,
msg
,
(
WPARAM
)
WIN_Handle32
(
wParam
),
lParam
,
result
,
arg
);
...
@@ -1546,8 +1546,8 @@ LRESULT WINPROC_CallProc16To32A( winproc_callback_t callback, HWND16 hwnd, UINT1
...
@@ -1546,8 +1546,8 @@ LRESULT WINPROC_CallProc16To32A( winproc_callback_t callback, HWND16 hwnd, UINT1
break
;
/* FIXME don't know how to free allocated memory (handle) !! */
break
;
/* FIXME don't know how to free allocated memory (handle) !! */
case
WM_DDE_ACK
:
case
WM_DDE_ACK
:
{
{
UINT
lo
=
LOWORD
(
lParam
);
UINT
_PTR
lo
=
LOWORD
(
lParam
);
UINT
hi
=
HIWORD
(
lParam
);
UINT
_PTR
hi
=
HIWORD
(
lParam
);
int
flag
=
0
;
int
flag
=
0
;
char
buf
[
2
];
char
buf
[
2
];
...
@@ -1565,7 +1565,7 @@ LRESULT WINPROC_CallProc16To32A( winproc_callback_t callback, HWND16 hwnd, UINT1
...
@@ -1565,7 +1565,7 @@ LRESULT WINPROC_CallProc16To32A( winproc_callback_t callback, HWND16 hwnd, UINT1
case
1
:
case
1
:
break
;
/* atom, nothing to do */
break
;
/* atom, nothing to do */
case
3
:
case
3
:
MESSAGE
(
"DDE_ACK: %x both atom and handle... choosing handle
\n
"
,
hi
);
MESSAGE
(
"DDE_ACK: %
l
x both atom and handle... choosing handle
\n
"
,
hi
);
/* fall thru */
/* fall thru */
case
2
:
case
2
:
hi
=
convert_handle_16_to_32
(
hi
,
GMEM_DDESHARE
);
hi
=
convert_handle_16_to_32
(
hi
,
GMEM_DDESHARE
);
...
...
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