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
b12fbe16
Commit
b12fbe16
authored
Oct 28, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: HANDLE/HGLOBAL are basically just void pointers. No casts to other pointers are needed.
parent
09802e2c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
commctrl.c
dlls/comctl32/commctrl.c
+6
-6
propsheet.c
dlls/comctl32/propsheet.c
+0
-0
No files found.
dlls/comctl32/commctrl.c
View file @
b12fbe16
...
@@ -889,7 +889,7 @@ CreateMappedBitmap (HINSTANCE hInstance, INT_PTR idBitmap, UINT wFlags,
...
@@ -889,7 +889,7 @@ CreateMappedBitmap (HINSTANCE hInstance, INT_PTR idBitmap, UINT wFlags,
else
else
nColorTableSize
=
0
;
nColorTableSize
=
0
;
nSize
=
lpBitmap
->
biSize
+
nColorTableSize
*
sizeof
(
RGBQUAD
);
nSize
=
lpBitmap
->
biSize
+
nColorTableSize
*
sizeof
(
RGBQUAD
);
lpBitmapInfo
=
(
LPBITMAPINFOHEADER
)
GlobalAlloc
(
GMEM_FIXED
,
nSize
);
lpBitmapInfo
=
GlobalAlloc
(
GMEM_FIXED
,
nSize
);
if
(
lpBitmapInfo
==
NULL
)
if
(
lpBitmapInfo
==
NULL
)
return
0
;
return
0
;
RtlMoveMemory
(
lpBitmapInfo
,
lpBitmap
,
nSize
);
RtlMoveMemory
(
lpBitmapInfo
,
lpBitmap
,
nSize
);
...
@@ -1117,7 +1117,7 @@ BOOL WINAPI SetWindowSubclass (HWND hWnd, SUBCLASSPROC pfnSubclass,
...
@@ -1117,7 +1117,7 @@ BOOL WINAPI SetWindowSubclass (HWND hWnd, SUBCLASSPROC pfnSubclass,
* from there. */
* from there. */
/* See if we have been called for this window */
/* See if we have been called for this window */
stack
=
(
LPSUBCLASS_INFO
)
GetPropW
(
hWnd
,
COMCTL32_wSubclass
);
stack
=
GetPropW
(
hWnd
,
COMCTL32_wSubclass
);
if
(
!
stack
)
{
if
(
!
stack
)
{
/* allocate stack */
/* allocate stack */
stack
=
Alloc
(
sizeof
(
SUBCLASS_INFO
));
stack
=
Alloc
(
sizeof
(
SUBCLASS_INFO
));
...
@@ -1196,7 +1196,7 @@ BOOL WINAPI GetWindowSubclass (HWND hWnd, SUBCLASSPROC pfnSubclass,
...
@@ -1196,7 +1196,7 @@ BOOL WINAPI GetWindowSubclass (HWND hWnd, SUBCLASSPROC pfnSubclass,
TRACE
(
"(%p, %p, %lx, %p)
\n
"
,
hWnd
,
pfnSubclass
,
uID
,
pdwRef
);
TRACE
(
"(%p, %p, %lx, %p)
\n
"
,
hWnd
,
pfnSubclass
,
uID
,
pdwRef
);
/* See if we have been called for this window */
/* See if we have been called for this window */
stack
=
(
LPSUBCLASS_INFO
)
GetPropW
(
hWnd
,
COMCTL32_wSubclass
);
stack
=
GetPropW
(
hWnd
,
COMCTL32_wSubclass
);
if
(
!
stack
)
if
(
!
stack
)
return
FALSE
;
return
FALSE
;
...
@@ -1239,7 +1239,7 @@ BOOL WINAPI RemoveWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, UINT_PTR u
...
@@ -1239,7 +1239,7 @@ BOOL WINAPI RemoveWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, UINT_PTR u
TRACE
(
"(%p, %p, %lx)
\n
"
,
hWnd
,
pfnSubclass
,
uID
);
TRACE
(
"(%p, %p, %lx)
\n
"
,
hWnd
,
pfnSubclass
,
uID
);
/* Find the Subclass to remove */
/* Find the Subclass to remove */
stack
=
(
LPSUBCLASS_INFO
)
GetPropW
(
hWnd
,
COMCTL32_wSubclass
);
stack
=
GetPropW
(
hWnd
,
COMCTL32_wSubclass
);
if
(
!
stack
)
if
(
!
stack
)
return
FALSE
;
return
FALSE
;
...
@@ -1292,7 +1292,7 @@ LRESULT WINAPI COMCTL32_SubclassProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
...
@@ -1292,7 +1292,7 @@ LRESULT WINAPI COMCTL32_SubclassProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
TRACE
(
"(%p, 0x%08x, 0x%08lx, 0x%08lx)
\n
"
,
hWnd
,
uMsg
,
wParam
,
lParam
);
TRACE
(
"(%p, 0x%08x, 0x%08lx, 0x%08lx)
\n
"
,
hWnd
,
uMsg
,
wParam
,
lParam
);
stack
=
(
LPSUBCLASS_INFO
)
GetPropW
(
hWnd
,
COMCTL32_wSubclass
);
stack
=
GetPropW
(
hWnd
,
COMCTL32_wSubclass
);
if
(
!
stack
)
{
if
(
!
stack
)
{
ERR
(
"Our sub classing stack got erased for %p!! Nothing we can do
\n
"
,
hWnd
);
ERR
(
"Our sub classing stack got erased for %p!! Nothing we can do
\n
"
,
hWnd
);
return
0
;
return
0
;
...
@@ -1343,7 +1343,7 @@ LRESULT WINAPI DefSubclassProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
...
@@ -1343,7 +1343,7 @@ LRESULT WINAPI DefSubclassProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
TRACE
(
"(%p, 0x%08x, 0x%08lx, 0x%08lx)
\n
"
,
hWnd
,
uMsg
,
wParam
,
lParam
);
TRACE
(
"(%p, 0x%08x, 0x%08lx, 0x%08lx)
\n
"
,
hWnd
,
uMsg
,
wParam
,
lParam
);
/* retrieve our little stack from the Properties */
/* retrieve our little stack from the Properties */
stack
=
(
LPSUBCLASS_INFO
)
GetPropW
(
hWnd
,
COMCTL32_wSubclass
);
stack
=
GetPropW
(
hWnd
,
COMCTL32_wSubclass
);
if
(
!
stack
)
{
if
(
!
stack
)
{
ERR
(
"Our sub classing stack got erased for %p!! Nothing we can do
\n
"
,
hWnd
);
ERR
(
"Our sub classing stack got erased for %p!! Nothing we can do
\n
"
,
hWnd
);
return
0
;
return
0
;
...
...
dlls/comctl32/propsheet.c
View file @
b12fbe16
This diff is collapsed.
Click to expand it.
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