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
a22c7a6c
Commit
a22c7a6c
authored
May 02, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
May 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Constify a variable.
parent
e9924fe3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
heap.c
dlls/kernel32/heap.c
+1
-1
heap.c
dlls/ntdll/heap.c
+2
-2
winbase.h
include/winbase.h
+1
-1
winternl.h
include/winternl.h
+1
-1
No files found.
dlls/kernel32/heap.c
View file @
a22c7a6c
...
...
@@ -287,7 +287,7 @@ LPVOID WINAPI HeapReAlloc( HANDLE heap, DWORD flags, LPVOID ptr, SIZE_T size )
return
RtlReAllocateHeap
(
heap
,
flags
,
ptr
,
size
);
}
SIZE_T
WINAPI
HeapSize
(
HANDLE
heap
,
DWORD
flags
,
LPVOID
ptr
)
SIZE_T
WINAPI
HeapSize
(
HANDLE
heap
,
DWORD
flags
,
LP
C
VOID
ptr
)
{
return
RtlSizeHeap
(
heap
,
flags
,
ptr
);
}
...
...
dlls/ntdll/heap.c
View file @
a22c7a6c
...
...
@@ -1511,7 +1511,7 @@ BOOLEAN WINAPI RtlUnlockHeap( HANDLE heap )
* NOTES
* The size may be bigger than what was passed to RtlAllocateHeap().
*/
SIZE_T
WINAPI
RtlSizeHeap
(
HANDLE
heap
,
ULONG
flags
,
PVOID
ptr
)
SIZE_T
WINAPI
RtlSizeHeap
(
HANDLE
heap
,
ULONG
flags
,
const
void
*
ptr
)
{
SIZE_T
ret
;
HEAP
*
heapPtr
=
HEAP_GetPtr
(
heap
);
...
...
@@ -1531,7 +1531,7 @@ SIZE_T WINAPI RtlSizeHeap( HANDLE heap, ULONG flags, PVOID ptr )
}
else
{
ARENA_INUSE
*
pArena
=
(
ARENA_INUSE
*
)
ptr
-
1
;
const
ARENA_INUSE
*
pArena
=
(
const
ARENA_INUSE
*
)
ptr
-
1
;
ret
=
(
pArena
->
size
&
ARENA_SIZE_MASK
)
-
pArena
->
unused_bytes
;
}
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
...
...
include/winbase.h
View file @
a22c7a6c
...
...
@@ -1742,7 +1742,7 @@ BOOL WINAPI HeapLock(HANDLE);
LPVOID
WINAPI
HeapReAlloc
(
HANDLE
,
DWORD
,
LPVOID
,
SIZE_T
);
BOOL
WINAPI
HeapQueryInformation
(
HANDLE
,
HEAP_INFORMATION_CLASS
,
PVOID
,
SIZE_T
,
PSIZE_T
);
BOOL
WINAPI
HeapSetInformation
(
HANDLE
,
HEAP_INFORMATION_CLASS
,
PVOID
,
SIZE_T
);
SIZE_T
WINAPI
HeapSize
(
HANDLE
,
DWORD
,
LPVOID
);
SIZE_T
WINAPI
HeapSize
(
HANDLE
,
DWORD
,
LP
C
VOID
);
BOOL
WINAPI
HeapUnlock
(
HANDLE
);
BOOL
WINAPI
HeapValidate
(
HANDLE
,
DWORD
,
LPCVOID
);
BOOL
WINAPI
HeapWalk
(
HANDLE
,
LPPROCESS_HEAP_ENTRY
);
...
...
include/winternl.h
View file @
a22c7a6c
...
...
@@ -2193,7 +2193,7 @@ void WINAPI RtlSetLastWin32Error(DWORD);
void
WINAPI
RtlSetLastWin32ErrorAndNtStatusFromNtStatus
(
NTSTATUS
);
NTSTATUS
WINAPI
RtlSetSaclSecurityDescriptor
(
PSECURITY_DESCRIPTOR
,
BOOLEAN
,
PACL
,
BOOLEAN
);
NTSTATUS
WINAPI
RtlSetTimeZoneInformation
(
const
RTL_TIME_ZONE_INFORMATION
*
);
SIZE_T
WINAPI
RtlSizeHeap
(
HANDLE
,
ULONG
,
PVOID
);
SIZE_T
WINAPI
RtlSizeHeap
(
HANDLE
,
ULONG
,
const
void
*
);
NTSTATUS
WINAPI
RtlStringFromGUID
(
REFGUID
,
PUNICODE_STRING
);
LPDWORD
WINAPI
RtlSubAuthoritySid
(
PSID
,
DWORD
);
LPBYTE
WINAPI
RtlSubAuthorityCountSid
(
PSID
);
...
...
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