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
32c066d1
Commit
32c066d1
authored
Feb 10, 2017
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Simplify and standardize the heap_xxx() declarations.
Signed-off-by:
Francois Gouget
<
fgouget@free.fr
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9f0e5bf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
advapi32_misc.h
dlls/advapi32/advapi32_misc.h
+10
-12
No files found.
dlls/advapi32/advapi32_misc.h
View file @
32c066d1
...
...
@@ -35,28 +35,26 @@ DWORD SERV_OpenSCManagerW(LPCWSTR, LPCWSTR, DWORD, SC_HANDLE*) DECLSPEC_HIDDEN;
DWORD
SERV_OpenServiceW
(
SC_HANDLE
,
LPCWSTR
,
DWORD
,
SC_HANDLE
*
)
DECLSPEC_HIDDEN
;
NTSTATUS
SERV_QueryServiceObjectSecurity
(
SC_HANDLE
,
SECURITY_INFORMATION
,
PSECURITY_DESCRIPTOR
,
DWORD
,
LPDWORD
)
DECLSPEC_HIDDEN
;
/*
heap allocation helper
s */
static
void
*
heap_alloc
(
size_t
len
)
__WINE_ALLOC_SIZE
(
1
);
static
inline
void
*
heap_alloc
(
size_t
len
)
/*
memory allocation function
s */
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc
(
size_t
size
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
return
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
}
static
void
*
heap_alloc_zero
(
size_t
len
)
__WINE_ALLOC_SIZE
(
1
);
static
inline
void
*
heap_alloc_zero
(
size_t
len
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc_zero
(
size_t
size
)
{
return
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
len
);
return
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
size
);
}
static
void
*
heap_realloc
(
void
*
mem
,
size_t
len
)
__WINE_ALLOC_SIZE
(
2
);
static
inline
void
*
heap_realloc
(
void
*
mem
,
size_t
len
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
2
)
heap_realloc
(
void
*
mem
,
size_t
size
)
{
return
HeapReAlloc
(
GetProcessHeap
(),
0
,
mem
,
len
);
return
HeapReAlloc
(
GetProcessHeap
(),
0
,
mem
,
size
);
}
static
inline
BOOL
heap_free
(
void
*
mem
)
static
inline
BOOL
heap_free
(
void
*
mem
)
{
return
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
return
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
}
static
inline
WCHAR
*
strdupAW
(
const
char
*
src
)
...
...
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