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
87b15bb9
Commit
87b15bb9
authored
Mar 02, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskmgr: Cast to LPARAM the 4th argument passed to SendMessage.
Casting to long would truncate the pointers when compiling with MSVC for Win64.
parent
e18e6ba3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
taskmgr.c
programs/taskmgr/taskmgr.c
+3
-3
No files found.
programs/taskmgr/taskmgr.c
View file @
87b15bb9
...
...
@@ -151,7 +151,7 @@ static BOOL OnCreate(HWND hWnd)
nParts
[
0
]
=
100
;
nParts
[
1
]
=
210
;
nParts
[
2
]
=
400
;
SendMessageW
(
hStatusWnd
,
SB_SETPARTS
,
3
,
(
long
)
nParts
);
SendMessageW
(
hStatusWnd
,
SB_SETPARTS
,
3
,
(
LPARAM
)
nParts
);
/* Create tab pages */
hTabWnd
=
GetDlgItem
(
hWnd
,
IDC_TAB
);
...
...
@@ -518,7 +518,7 @@ static void TaskManager_OnEnterMenuLoop(HWND hWnd)
/* Update the status bar pane sizes */
nParts
=
-
1
;
SendMessageW
(
hStatusWnd
,
SB_SETPARTS
,
1
,
(
long
)
&
nParts
);
SendMessageW
(
hStatusWnd
,
SB_SETPARTS
,
1
,
(
LPARAM
)
&
nParts
);
bInMenuLoop
=
TRUE
;
SendMessageW
(
hStatusWnd
,
SB_SETTEXTW
,
0
,
0
);
}
...
...
@@ -538,7 +538,7 @@ static void TaskManager_OnExitMenuLoop(HWND hWnd)
nParts
[
0
]
=
100
;
nParts
[
1
]
=
210
;
nParts
[
2
]
=
rc
.
right
;
SendMessageW
(
hStatusWnd
,
SB_SETPARTS
,
3
,
(
long
)
nParts
);
SendMessageW
(
hStatusWnd
,
SB_SETPARTS
,
3
,
(
LPARAM
)
nParts
);
SendMessageW
(
hStatusWnd
,
SB_SETTEXT
,
0
,
0
);
wsprintfW
(
text
,
wszCPU_Usage
,
PerfDataGetProcessorUsage
());
SendMessageW
(
hStatusWnd
,
SB_SETTEXTW
,
1
,
(
LPARAM
)
text
);
...
...
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