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
2e25e5e2
Commit
2e25e5e2
authored
Jan 04, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Use alloc/free helpers for typelib creation part too.
parent
ed749f51
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
typelib.c
dlls/oleaut32/typelib.c
+8
-3
typelib.h
dlls/oleaut32/typelib.h
+6
-0
typelib2.c
dlls/oleaut32/typelib2.c
+0
-0
No files found.
dlls/oleaut32/typelib.c
View file @
2e25e5e2
...
...
@@ -1466,21 +1466,26 @@ static void TLB_abort(void)
DebugBreak
();
}
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc_zero
(
unsigned
size
)
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc_zero
(
unsigned
size
)
{
void
*
ret
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
size
);
if
(
!
ret
)
ERR
(
"cannot allocate memory
\n
"
);
return
ret
;
}
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc
(
unsigned
size
)
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc
(
unsigned
size
)
{
void
*
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
!
ret
)
ERR
(
"cannot allocate memory
\n
"
);
return
ret
;
}
static
inline
void
heap_free
(
void
*
ptr
)
void
*
__WINE_ALLOC_SIZE
(
2
)
heap_realloc
(
void
*
ptr
,
unsigned
size
)
{
return
HeapReAlloc
(
GetProcessHeap
(),
0
,
ptr
,
size
);
}
void
heap_free
(
void
*
ptr
)
{
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
}
...
...
dlls/oleaut32/typelib.h
View file @
2e25e5e2
...
...
@@ -596,6 +596,12 @@ WORD typeofarray
#include "poppack.h"
/* heap allocation helpers */
extern
void
*
heap_alloc_zero
(
unsigned
size
);
extern
void
*
heap_alloc
(
unsigned
size
);
extern
void
*
heap_realloc
(
void
*
ptr
,
unsigned
size
);
extern
void
heap_free
(
void
*
ptr
);
HRESULT
ITypeInfoImpl_GetInternalFuncDesc
(
ITypeInfo
*
iface
,
UINT
index
,
const
FUNCDESC
**
ppFuncDesc
);
extern
DWORD
_invoke
(
FARPROC
func
,
CALLCONV
callconv
,
int
nrargs
,
DWORD
*
args
);
...
...
dlls/oleaut32/typelib2.c
View file @
2e25e5e2
This diff is collapsed.
Click to expand it.
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