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
de3e06a7
Commit
de3e06a7
authored
Dec 09, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Fix some pointer cast warnings on 64-bit.
parent
44a9bae9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
draw.c
dlls/uxtheme/draw.c
+2
-3
system.c
dlls/uxtheme/system.c
+2
-5
No files found.
dlls/uxtheme/draw.c
View file @
de3e06a7
...
...
@@ -56,7 +56,7 @@ HRESULT WINAPI EnableThemeDialogTexture(HWND hwnd, DWORD dwFlags)
TRACE
(
"(%p,0x%08x
\n
"
,
hwnd
,
dwFlags
);
res
=
SetPropW
(
hwnd
,
(
LPCWSTR
)
MAKEINTATOM
(
atDialogThemeEnabled
),
(
HANDLE
)(
dwFlags
|
0x80000000
));
UlongToHandle
(
dwFlags
|
0x80000000
));
/* 0x80000000 serves as a "flags set" flag */
if
(
!
res
)
return
HRESULT_FROM_WIN32
(
GetLastError
());
...
...
@@ -74,8 +74,7 @@ BOOL WINAPI IsThemeDialogTextureEnabled(HWND hwnd)
DWORD
dwDialogTextureFlags
;
TRACE
(
"(%p)
\n
"
,
hwnd
);
dwDialogTextureFlags
=
(
DWORD
)
GetPropW
(
hwnd
,
(
LPCWSTR
)
MAKEINTATOM
(
atDialogThemeEnabled
));
dwDialogTextureFlags
=
HandleToUlong
(
GetPropW
(
hwnd
,
(
LPCWSTR
)
MAKEINTATOM
(
atDialogThemeEnabled
)
));
if
(
dwDialogTextureFlags
==
0
)
/* Means EnableThemeDialogTexture wasn't called for this dialog */
return
TRUE
;
...
...
dlls/uxtheme/system.c
View file @
de3e06a7
...
...
@@ -393,8 +393,7 @@ static void UXTHEME_RestoreSystemMetrics(void)
if
(
RegQueryValueExW
(
hKey
,
bsp
->
keyName
,
0
,
&
type
,
(
LPBYTE
)
&
value
,
&
count
)
==
ERROR_SUCCESS
)
{
SystemParametersInfoW
(
bsp
->
spiSet
,
0
,
(
LPVOID
)
value
,
SPIF_UPDATEINIFILE
);
SystemParametersInfoW
(
bsp
->
spiSet
,
0
,
UlongToPtr
(
value
),
SPIF_UPDATEINIFILE
);
}
bsp
++
;
...
...
@@ -445,9 +444,7 @@ static void UXTHEME_SaveSystemMetrics(void)
DWORD
value
;
SystemParametersInfoW
(
bsp
->
spiGet
,
0
,
&
value
,
0
);
SystemParametersInfoW
(
bsp
->
spiSet
,
0
,
(
LPVOID
)
value
,
SPIF_UPDATEINIFILE
);
SystemParametersInfoW
(
bsp
->
spiSet
,
0
,
UlongToPtr
(
value
),
SPIF_UPDATEINIFILE
);
bsp
++
;
}
...
...
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