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
caa604b5
Commit
caa604b5
authored
Feb 09, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvfw32: Remove some Win64 compiler warnings.
- Use HandleToLong to get to the user handle. - Use GetWindowLongPtr to retrieve a pointer.
parent
a90828aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mciwnd.c
dlls/msvfw32/mciwnd.c
+3
-3
No files found.
dlls/msvfw32/mciwnd.c
View file @
caa604b5
...
...
@@ -449,7 +449,7 @@ static LRESULT WINAPI MCIWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lPa
TRACE
(
"%p %04x %08lx %08lx
\n
"
,
hWnd
,
wMsg
,
wParam
,
lParam
);
mwi
=
(
MCIWndInfo
*
)
GetWindowLongW
(
hWnd
,
0
);
mwi
=
(
MCIWndInfo
*
)
GetWindowLong
Ptr
W
(
hWnd
,
0
);
if
(
!
mwi
&&
wMsg
!=
WM_CREATE
)
return
DefWindowProcW
(
hWnd
,
wMsg
,
wParam
,
lParam
);
...
...
@@ -568,7 +568,7 @@ static LRESULT WINAPI MCIWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lPa
hCursor
=
SetCursor
(
hCursor
);
mci_open
.
lpstrElementName
=
(
LPWSTR
)
lParam
;
wsprintfW
(
aliasW
,
formatW
,
(
int
)
hWnd
+
1
);
wsprintfW
(
aliasW
,
formatW
,
HandleToLong
(
hWnd
)
+
1
);
mci_open
.
lpstrAlias
=
aliasW
;
mwi
->
lasterror
=
mciSendCommandW
(
mwi
->
mci
,
MCI_OPEN
,
MCI_OPEN_ELEMENT
|
MCI_OPEN_ALIAS
|
MCI_WAIT
,
...
...
@@ -588,7 +588,7 @@ static LRESULT WINAPI MCIWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lPa
}
mwi
->
mci
=
mci_open
.
wDeviceID
;
mwi
->
alias
=
(
int
)
hWnd
+
1
;
mwi
->
alias
=
HandleToLong
(
hWnd
)
+
1
;
mwi
->
lpName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
((
LPWSTR
)
lParam
)
+
1
)
*
sizeof
(
WCHAR
));
strcpyW
(
mwi
->
lpName
,
(
LPWSTR
)
lParam
);
...
...
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