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
899840c9
Commit
899840c9
authored
May 31, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
May 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Use a Get/SetWindowLongPtr to store a pointer.
parent
74a03d25
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
user.c
programs/wineconsole/user.c
+3
-3
No files found.
programs/wineconsole/user.c
View file @
899840c9
...
...
@@ -871,7 +871,7 @@ static LRESULT WCUSER_Create(HWND hWnd, LPCREATESTRUCT lpcs)
HMENU
hSysMenu
;
data
=
lpcs
->
lpCreateParams
;
SetWindowLong
(
hWnd
,
0L
,
(
DWORD
)
data
);
SetWindowLong
Ptr
(
hWnd
,
0L
,
(
DWORD_PTR
)
data
);
PRIVATE
(
data
)
->
hWnd
=
hWnd
;
hSysMenu
=
GetSystemMenu
(
hWnd
,
FALSE
);
...
...
@@ -1081,7 +1081,7 @@ static void WCUSER_GenerateMouseInputRecord(struct inner_data* data, COORD c,
*/
static
LRESULT
CALLBACK
WCUSER_Proc
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
struct
inner_data
*
data
=
(
struct
inner_data
*
)
GetWindowLong
(
hWnd
,
0
);
struct
inner_data
*
data
=
(
struct
inner_data
*
)
GetWindowLong
Ptr
(
hWnd
,
0
);
switch
(
uMsg
)
{
...
...
@@ -1400,7 +1400,7 @@ enum init_return WCUSER_InitBackend(struct inner_data* data)
wndclass
.
style
=
CS_DBLCLKS
;
wndclass
.
lpfnWndProc
=
WCUSER_Proc
;
wndclass
.
cbClsExtra
=
0
;
wndclass
.
cbWndExtra
=
sizeof
(
DWORD
);
wndclass
.
cbWndExtra
=
sizeof
(
DWORD
_PTR
);
wndclass
.
hInstance
=
GetModuleHandle
(
NULL
);
wndclass
.
hIcon
=
LoadIcon
(
0
,
IDI_WINLOGO
);
wndclass
.
hCursor
=
LoadCursor
(
0
,
IDC_ARROW
);
...
...
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