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
272fb14e
Commit
272fb14e
authored
Jan 08, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Remove unneeded casts.
parent
b02b9496
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
heap.c
dlls/kernel32/heap.c
+8
-8
toolhelp.c
dlls/kernel32/toolhelp.c
+2
-2
No files found.
dlls/kernel32/heap.c
View file @
272fb14e
...
...
@@ -955,7 +955,7 @@ HLOCAL WINAPI LocalAlloc(
UINT
flags
,
/* [in] Allocation attributes */
SIZE_T
size
/* [in] Number of bytes to allocate */
)
{
return
(
HLOCAL
)
GlobalAlloc
(
flags
,
size
);
return
GlobalAlloc
(
flags
,
size
);
}
...
...
@@ -984,7 +984,7 @@ SIZE_T WINAPI LocalCompact( UINT minfree )
UINT
WINAPI
LocalFlags
(
HLOCAL
handle
/* [in] Handle of memory object */
)
{
return
GlobalFlags
(
(
HGLOBAL
)
handle
);
return
GlobalFlags
(
handle
);
}
...
...
@@ -1004,7 +1004,7 @@ UINT WINAPI LocalFlags(
HLOCAL
WINAPI
LocalFree
(
HLOCAL
handle
/* [in] Handle of memory object */
)
{
return
(
HLOCAL
)
GlobalFree
(
(
HGLOBAL
)
handle
);
return
GlobalFree
(
handle
);
}
...
...
@@ -1024,7 +1024,7 @@ HLOCAL WINAPI LocalFree(
HLOCAL
WINAPI
LocalHandle
(
LPCVOID
ptr
/* [in] Address of local memory block */
)
{
return
(
HLOCAL
)
GlobalHandle
(
ptr
);
return
GlobalHandle
(
ptr
);
}
...
...
@@ -1044,7 +1044,7 @@ HLOCAL WINAPI LocalHandle(
LPVOID
WINAPI
LocalLock
(
HLOCAL
handle
/* [in] Address of local memory object */
)
{
return
GlobalLock
(
(
HGLOBAL
)
handle
);
return
GlobalLock
(
handle
);
}
...
...
@@ -1066,7 +1066,7 @@ HLOCAL WINAPI LocalReAlloc(
SIZE_T
size
,
/* [in] New size of block */
UINT
flags
/* [in] How to reallocate object */
)
{
return
(
HLOCAL
)
GlobalReAlloc
(
(
HGLOBAL
)
handle
,
size
,
flags
);
return
GlobalReAlloc
(
handle
,
size
,
flags
);
}
...
...
@@ -1095,7 +1095,7 @@ SIZE_T WINAPI LocalShrink( HGLOBAL handle, UINT newsize )
SIZE_T
WINAPI
LocalSize
(
HLOCAL
handle
/* [in] Handle of memory object */
)
{
return
GlobalSize
(
(
HGLOBAL
)
handle
);
return
GlobalSize
(
handle
);
}
...
...
@@ -1115,7 +1115,7 @@ SIZE_T WINAPI LocalSize(
BOOL
WINAPI
LocalUnlock
(
HLOCAL
handle
/* [in] Handle of memory object */
)
{
return
GlobalUnlock
(
(
HGLOBAL
)
handle
);
return
GlobalUnlock
(
handle
);
}
...
...
dlls/kernel32/toolhelp.c
View file @
272fb14e
...
...
@@ -274,8 +274,8 @@ static void fill_thread( struct snapshot* snap, ULONG* offset, LPVOID info, ULON
{
thd_entry
->
dwSize
=
sizeof
(
THREADENTRY32
);
thd_entry
->
cntUsage
=
0
;
/* MSDN says no longer used, always 0 */
thd_entry
->
th32ThreadID
=
(
ULONG
)
sti
->
dwThreadID
;
thd_entry
->
th32OwnerProcessID
=
(
ULONG
)
sti
->
dwOwningPID
;
thd_entry
->
th32ThreadID
=
sti
->
dwThreadID
;
thd_entry
->
th32OwnerProcessID
=
sti
->
dwOwningPID
;
thd_entry
->
tpBasePri
=
sti
->
dwBasePriority
;
thd_entry
->
tpDeltaPri
=
0
;
/* MSDN says no longer used, always 0 */
thd_entry
->
dwFlags
=
0
;
/* MSDN says no longer used, always 0" */
...
...
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