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
efeb9ee4
Commit
efeb9ee4
authored
May 18, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskmgr: Avoid using long.
parent
15efbc89
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
graphctl.c
programs/taskmgr/graphctl.c
+3
-3
run.c
programs/taskmgr/run.c
+1
-1
taskmgr.c
programs/taskmgr/taskmgr.c
+1
-1
No files found.
programs/taskmgr/graphctl.c
View file @
efeb9ee4
...
...
@@ -416,14 +416,14 @@ static void GraphCtrl_DrawPoint(TGraphCtrl* this)
/* move to the previous point */
prevX
=
this
->
m_rectPlot
.
right
-
this
->
m_nPlotShiftPixels
;
prevY
=
this
->
m_rectPlot
.
bottom
-
(
long
)((
this
->
m_dPreviousPosition
[
i
]
-
this
->
m_dLowerLimit
)
*
this
->
m_dVerticalFactor
);
prevY
=
this
->
m_rectPlot
.
bottom
-
(
int
)((
this
->
m_dPreviousPosition
[
i
]
-
this
->
m_dLowerLimit
)
*
this
->
m_dVerticalFactor
);
MoveToEx
(
this
->
m_dcPlot
,
prevX
,
prevY
,
NULL
);
/* draw to the current point */
currX
=
this
->
m_rectPlot
.
right
-
this
->
m_nHalfShiftPixels
;
currY
=
this
->
m_rectPlot
.
bottom
-
(
long
)((
this
->
m_dCurrentPosition
[
i
]
-
this
->
m_dLowerLimit
)
*
this
->
m_dVerticalFactor
);
(
int
)((
this
->
m_dCurrentPosition
[
i
]
-
this
->
m_dLowerLimit
)
*
this
->
m_dVerticalFactor
);
LineTo
(
this
->
m_dcPlot
,
currX
,
currY
);
/* Restore the pen */
...
...
programs/taskmgr/run.c
View file @
efeb9ee4
...
...
@@ -56,7 +56,7 @@ void TaskManager_OnFileNew(void)
static
const
WCHAR
wszShell32
[]
=
{
'S'
,
'H'
,
'E'
,
'L'
,
'L'
,
'3'
,
'2'
,
'.'
,
'D'
,
'L'
,
'L'
,
0
};
hShell32
=
LoadLibraryW
(
wszShell32
);
RunFileDlg
=
(
RUNFILEDLG
)(
FARPROC
)
GetProcAddress
(
hShell32
,
(
char
*
)((
long
)
0x3D
)
);
RunFileDlg
=
(
void
*
)
GetProcAddress
(
hShell32
,
(
LPCSTR
)
61
);
/* Show "Run..." dialog */
if
(
RunFileDlg
)
...
...
programs/taskmgr/taskmgr.c
View file @
efeb9ee4
...
...
@@ -754,7 +754,7 @@ LPWSTR GetLastErrorText(LPWSTR lpwszBuf, DWORD dwSize)
NULL
);
/* supplied buffer is not long enough */
if
(
!
dwRet
||
(
(
long
)
dwSize
<
(
long
)
dwRet
+
14
))
{
if
(
!
dwRet
||
(
dwSize
<
dwRet
+
14
))
{
lpwszBuf
[
0
]
=
'\0'
;
}
else
{
lpwszTemp
[
strlenW
(
lpwszTemp
)
-
2
]
=
'\0'
;
/* remove cr and newline character */
...
...
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