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
6060ca94
Commit
6060ca94
authored
Oct 23, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: LockResource() returns a LPVOID so don't cast its return value.
parent
16593131
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
commctrl.c
dlls/comctl32/commctrl.c
+1
-1
propsheet.c
dlls/comctl32/propsheet.c
+4
-4
No files found.
dlls/comctl32/commctrl.c
View file @
6060ca94
...
...
@@ -878,7 +878,7 @@ CreateMappedBitmap (HINSTANCE hInstance, INT_PTR idBitmap, UINT wFlags,
hglb
=
LoadResource
(
hInstance
,
hRsrc
);
if
(
hglb
==
0
)
return
0
;
lpBitmap
=
(
LPBITMAPINFOHEADER
)
LockResource
(
hglb
);
lpBitmap
=
LockResource
(
hglb
);
if
(
lpBitmap
==
NULL
)
return
0
;
...
...
dlls/comctl32/propsheet.c
View file @
6060ca94
...
...
@@ -441,7 +441,7 @@ static BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEW lppsp,
(
LPWSTR
)
RT_DIALOG
);
HGLOBAL
hTemplate
=
LoadResource
(
lppsp
->
hInstance
,
hResource
);
pTemplate
=
(
LPDLGTEMPLATEW
)
LockResource
(
hTemplate
);
pTemplate
=
LockResource
(
hTemplate
);
}
else
{
...
...
@@ -450,7 +450,7 @@ static BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEW lppsp,
(
LPSTR
)
RT_DIALOG
);
HGLOBAL
hTemplate
=
LoadResource
(
lppsp
->
hInstance
,
hResource
);
pTemplate
=
(
LPDLGTEMPLATEA
)
LockResource
(
hTemplate
);
pTemplate
=
LockResource
(
hTemplate
);
}
/*
...
...
@@ -1412,7 +1412,7 @@ static BOOL PROPSHEET_CreatePage(HWND hwndParent,
if
(
!
hTemplate
)
return
FALSE
;
pTemplate
=
(
LPDLGTEMPLATEW
)
LockResource
(
hTemplate
);
pTemplate
=
LockResource
(
hTemplate
);
/*
* Make a copy of the dialog template to make it writable
*/
...
...
@@ -1434,7 +1434,7 @@ static BOOL PROPSHEET_CreatePage(HWND hwndParent,
if
(
!
hTemplate
)
return
FALSE
;
pTemplate
=
(
LPDLGTEMPLATEA
)
LockResource
(
hTemplate
);
pTemplate
=
LockResource
(
hTemplate
);
/*
* Make a copy of the dialog template to make it writable
*/
...
...
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