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
157f9741
Commit
157f9741
authored
Sep 12, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Get/SetWindowLongPtr to access pointers in the window extra
bytes.
parent
556a129a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
surface_wndproc.c
dlls/ddraw/surface_wndproc.c
+2
-2
No files found.
dlls/ddraw/surface_wndproc.c
View file @
157f9741
...
@@ -54,7 +54,7 @@ static LRESULT WINAPI DirectDrawSurface_WndProc(HWND hwnd, UINT msg, WPARAM wPar
...
@@ -54,7 +54,7 @@ static LRESULT WINAPI DirectDrawSurface_WndProc(HWND hwnd, UINT msg, WPARAM wPar
IDirectDrawSurfaceImpl
*
This
;
IDirectDrawSurfaceImpl
*
This
;
LRESULT
ret
;
LRESULT
ret
;
This
=
(
IDirectDrawSurfaceImpl
*
)
GetWindowLongA
(
hwnd
,
0
);
This
=
(
IDirectDrawSurfaceImpl
*
)
GetWindowLong
Ptr
A
(
hwnd
,
0
);
if
(
This
)
{
if
(
This
)
{
HWND
window
=
This
->
ddraw_owner
->
window
;
HWND
window
=
This
->
ddraw_owner
->
window
;
...
@@ -96,7 +96,7 @@ static LRESULT WINAPI DirectDrawSurface_WndProc(HWND hwnd, UINT msg, WPARAM wPar
...
@@ -96,7 +96,7 @@ static LRESULT WINAPI DirectDrawSurface_WndProc(HWND hwnd, UINT msg, WPARAM wPar
if
(
msg
==
WM_CREATE
)
{
if
(
msg
==
WM_CREATE
)
{
CREATESTRUCTA
*
cs
=
(
CREATESTRUCTA
*
)
lParam
;
CREATESTRUCTA
*
cs
=
(
CREATESTRUCTA
*
)
lParam
;
This
=
(
IDirectDrawSurfaceImpl
*
)
cs
->
lpCreateParams
;
This
=
(
IDirectDrawSurfaceImpl
*
)
cs
->
lpCreateParams
;
SetWindowLong
A
(
hwnd
,
0
,
(
LONG
)
This
);
SetWindowLong
PtrA
(
hwnd
,
0
,
(
LONG_PTR
)
This
);
}
}
ret
=
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
ret
=
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
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