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
be0e0560
Commit
be0e0560
authored
Mar 09, 2017
by
Sebastian Lackner
Committed by
Alexandre Julliard
Mar 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schedsvc: Simplify and standardize the heap_xxx() declarations.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1c8cb597
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
schedsvc_private.h
dlls/schedsvc/schedsvc_private.h
+8
-10
svc_main.c
dlls/schedsvc/svc_main.c
+4
-2
No files found.
dlls/schedsvc/schedsvc_private.h
View file @
be0e0560
...
...
@@ -23,26 +23,24 @@
void
schedsvc_auto_start
(
void
)
DECLSPEC_HIDDEN
;
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc
(
SIZE_T
size
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc
(
size_t
size
)
{
return
MIDL_user_allocate
(
size
);
return
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
}
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc_zero
(
SIZE_T
size
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc_zero
(
size_t
size
)
{
void
*
ptr
=
MIDL_user_allocate
(
size
);
if
(
ptr
)
memset
(
ptr
,
0
,
size
);
return
ptr
;
return
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
size
);
}
static
inline
void
*
__WINE_ALLOC_SIZE
(
2
)
heap_realloc
(
void
*
ptr
,
SIZE_T
size
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
2
)
heap_realloc
(
void
*
mem
,
size_t
size
)
{
return
HeapReAlloc
(
GetProcessHeap
(),
0
,
ptr
,
size
);
return
HeapReAlloc
(
GetProcessHeap
(),
0
,
mem
,
size
);
}
static
inline
void
heap_free
(
void
*
ptr
)
static
inline
BOOL
heap_free
(
void
*
mem
)
{
MIDL_user_free
(
ptr
);
return
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
}
static
inline
WCHAR
*
heap_strdupW
(
const
WCHAR
*
src
)
...
...
dlls/schedsvc/svc_main.c
View file @
be0e0560
...
...
@@ -27,6 +27,8 @@
#include "schrpc.h"
#include "wine/debug.h"
#include "schedsvc_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
schedsvc
);
static
const
WCHAR
scheduleW
[]
=
{
'S'
,
'c'
,
'h'
,
'e'
,
'd'
,
'u'
,
'l'
,
'e'
,
0
};
...
...
@@ -200,10 +202,10 @@ void WINAPI ServiceMain(DWORD argc, LPWSTR *argv)
void
__RPC_FAR
*
__RPC_USER
MIDL_user_allocate
(
SIZE_T
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
return
heap_alloc
(
len
);
}
void
__RPC_USER
MIDL_user_free
(
void
__RPC_FAR
*
ptr
)
{
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
heap_free
(
ptr
);
}
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