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
d3085abc
Commit
d3085abc
authored
Jan 30, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Feb 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change parameter type from size_t to SIZE_T for MIDL_user_allocate.
parent
8e39646a
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
17 additions
and
17 deletions
+17
-17
service.c
dlls/advapi32/service.c
+1
-1
moniker.c
dlls/ole32/moniker.c
+1
-1
ndr_ole.c
dlls/rpcrt4/ndr_ole.c
+1
-1
rpc_epmap.c
dlls/rpcrt4/rpc_epmap.c
+1
-1
cstub.c
dlls/rpcrt4/tests/cstub.c
+1
-1
ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c
+1
-1
server.c
dlls/rpcrt4/tests/server.c
+1
-1
rpcndr.h
include/rpcndr.h
+7
-7
irotp.c
programs/rpcss/irotp.c
+1
-1
rpc.c
programs/services/rpc.c
+1
-1
header.c
tools/widl/header.c
+1
-1
No files found.
dlls/advapi32/service.c
View file @
d3085abc
...
...
@@ -49,7 +49,7 @@ static const WCHAR szServiceManagerKey[] = { 'S','y','s','t','e','m','\\',
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'S'
,
'e'
,
't'
,
'\\'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
's'
,
0
};
void
__RPC_FAR
*
__RPC_USER
MIDL_user_allocate
(
size_t
len
)
void
__RPC_FAR
*
__RPC_USER
MIDL_user_allocate
(
SIZE_T
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
}
...
...
dlls/ole32/moniker.c
View file @
d3085abc
...
...
@@ -1660,7 +1660,7 @@ HRESULT MonikerMarshal_Create(IMoniker *inner, IUnknown **outer)
return
S_OK
;
}
void
*
__RPC_USER
MIDL_user_allocate
(
size_t
size
)
void
*
__RPC_USER
MIDL_user_allocate
(
SIZE_T
size
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
}
...
...
dlls/rpcrt4/ndr_ole.c
View file @
d3085abc
...
...
@@ -354,7 +354,7 @@ void WINAPI NdrInterfacePointerFree(PMIDL_STUB_MESSAGE pStubMsg,
/***********************************************************************
* NdrOleAllocate [RPCRT4.@]
*/
void
*
WINAPI
NdrOleAllocate
(
size_t
Size
)
void
*
WINAPI
NdrOleAllocate
(
SIZE_T
Size
)
{
if
(
!
LoadCOM
())
return
NULL
;
return
COM_MemAlloc
(
Size
);
...
...
dlls/rpcrt4/rpc_epmap.c
View file @
d3085abc
...
...
@@ -596,7 +596,7 @@ RPC_STATUS WINAPI TowerConstruct(
return
RPC_S_OK
;
}
void
__RPC_FAR
*
__RPC_USER
MIDL_user_allocate
(
size_t
len
)
void
__RPC_FAR
*
__RPC_USER
MIDL_user_allocate
(
SIZE_T
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
}
...
...
dlls/rpcrt4/tests/cstub.c
View file @
d3085abc
...
...
@@ -48,7 +48,7 @@ static GUID IID_if4 = {0x1234567b, 1234, 5678, {12,34,56,78,90,0xab,0xcd,0xef}};
static
int
my_alloc_called
;
static
int
my_free_called
;
static
void
*
CALLBACK
my_alloc
(
size_t
size
)
static
void
*
CALLBACK
my_alloc
(
SIZE_T
size
)
{
my_alloc_called
++
;
return
NdrOleAllocate
(
size
);
...
...
dlls/rpcrt4/tests/ndr_marshall.c
View file @
d3085abc
...
...
@@ -36,7 +36,7 @@
static
int
my_alloc_called
;
static
int
my_free_called
;
static
void
*
CALLBACK
my_alloc
(
size_t
size
)
static
void
*
CALLBACK
my_alloc
(
SIZE_T
size
)
{
my_alloc_called
++
;
return
NdrOleAllocate
(
size
);
...
...
dlls/rpcrt4/tests/server.c
View file @
d3085abc
...
...
@@ -51,7 +51,7 @@ static void InitFunctionPointers(void)
}
void
__RPC_FAR
*
__RPC_USER
midl_user_allocate
(
size_t
n
)
midl_user_allocate
(
SIZE_T
n
)
{
return
malloc
(
n
);
}
...
...
include/rpcndr.h
View file @
d3085abc
...
...
@@ -195,7 +195,7 @@ typedef struct _MIDL_STUB_MESSAGE
ULONG_PTR
MaxCount
;
ULONG
Offset
;
ULONG
ActualCount
;
void
*
(
__WINE_ALLOC_SIZE
(
1
)
__RPC_API
*
pfnAllocate
)(
size_t
);
void
*
(
__WINE_ALLOC_SIZE
(
1
)
__RPC_API
*
pfnAllocate
)(
SIZE_T
);
void
(
__RPC_API
*
pfnFree
)(
void
*
);
unsigned
char
*
StackTop
;
unsigned
char
*
pPresentedType
;
...
...
@@ -322,7 +322,7 @@ typedef struct _USER_MARSHAL_CB
typedef
struct
_MALLOC_FREE_STRUCT
{
void
*
(
__WINE_ALLOC_SIZE
(
1
)
__RPC_USER
*
pfnAllocate
)(
size_t
);
void
*
(
__WINE_ALLOC_SIZE
(
1
)
__RPC_USER
*
pfnAllocate
)(
SIZE_T
);
void
(
__RPC_USER
*
pfnFree
)(
void
*
);
}
MALLOC_FREE_STRUCT
;
...
...
@@ -335,7 +335,7 @@ typedef struct _COMM_FAULT_OFFSETS
typedef
struct
_MIDL_STUB_DESC
{
void
*
RpcInterfaceInformation
;
void
*
(
__WINE_ALLOC_SIZE
(
1
)
__RPC_API
*
pfnAllocate
)(
size_t
);
void
*
(
__WINE_ALLOC_SIZE
(
1
)
__RPC_API
*
pfnAllocate
)(
SIZE_T
);
void
(
__RPC_API
*
pfnFree
)(
void
*
);
union
{
handle_t
*
pAutoHandle
;
...
...
@@ -474,7 +474,7 @@ typedef struct _NDR_USER_MARSHAL_INFO_LEVEL1
{
void
*
Buffer
;
ULONG
BufferSize
;
void
*
(
__WINE_ALLOC_SIZE
(
1
)
__RPC_API
*
pfnAllocate
)(
size_t
);
void
*
(
__WINE_ALLOC_SIZE
(
1
)
__RPC_API
*
pfnAllocate
)(
SIZE_T
);
void
(
__RPC_API
*
pfnFree
)(
void
*
);
struct
IRpcChannelBuffer
*
pRpcChannelBuffer
;
ULONG_PTR
Reserved
[
5
];
...
...
@@ -678,7 +678,7 @@ RPCRTAPI RPC_STATUS RPC_ENTRY
ULONG
*
pFaultStatus
,
RPC_STATUS
Status_
);
RPCRTAPI
void
*
RPC_ENTRY
NdrOleAllocate
(
size_t
Size
)
__WINE_ALLOC_SIZE
(
1
);
NdrOleAllocate
(
SIZE_T
Size
)
__WINE_ALLOC_SIZE
(
1
);
RPCRTAPI
void
RPC_ENTRY
NdrOleFree
(
void
*
NodeToFree
);
...
...
@@ -739,11 +739,11 @@ RPCRTAPI void RPC_ENTRY
RPCRTAPI
void
RPC_ENTRY
NdrRpcSmSetClientToOsf
(
PMIDL_STUB_MESSAGE
pMessage
);
RPCRTAPI
void
*
RPC_ENTRY
NdrRpcSmClientAllocate
(
size_t
Size
)
__WINE_ALLOC_SIZE
(
1
);
NdrRpcSmClientAllocate
(
SIZE_T
Size
)
__WINE_ALLOC_SIZE
(
1
);
RPCRTAPI
void
RPC_ENTRY
NdrRpcSmClientFree
(
void
*
NodeToFree
);
RPCRTAPI
void
*
RPC_ENTRY
NdrRpcSsDefaultAllocate
(
size_t
Size
)
__WINE_ALLOC_SIZE
(
1
);
NdrRpcSsDefaultAllocate
(
SIZE_T
Size
)
__WINE_ALLOC_SIZE
(
1
);
RPCRTAPI
void
RPC_ENTRY
NdrRpcSsDefaultFree
(
void
*
NodeToFree
);
...
...
programs/rpcss/irotp.c
View file @
d3085abc
...
...
@@ -368,7 +368,7 @@ void __RPC_USER IrotContextHandle_rundown(IrotContextHandle ctxt_handle)
rot_entry_release
(
rot_entry
);
}
void
*
__RPC_USER
MIDL_user_allocate
(
size_t
size
)
void
*
__RPC_USER
MIDL_user_allocate
(
SIZE_T
size
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
}
...
...
programs/services/rpc.c
View file @
d3085abc
...
...
@@ -1234,7 +1234,7 @@ void __RPC_USER SC_RPC_HANDLE_rundown(SC_RPC_HANDLE handle)
SC_RPC_HANDLE_destroy
(
handle
);
}
void
__RPC_FAR
*
__RPC_USER
MIDL_user_allocate
(
size_t
len
)
void
__RPC_FAR
*
__RPC_USER
MIDL_user_allocate
(
SIZE_T
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
}
...
...
tools/widl/header.c
View file @
d3085abc
...
...
@@ -990,7 +990,7 @@ static void write_rpc_interface_start(FILE *header, const type_t *iface)
if
(
!
allocate_written
)
{
allocate_written
=
1
;
fprintf
(
header
,
"void * __RPC_USER MIDL_user_allocate(
size_t
);
\n
"
);
fprintf
(
header
,
"void * __RPC_USER MIDL_user_allocate(
SIZE_T
);
\n
"
);
fprintf
(
header
,
"void __RPC_USER MIDL_user_free(void *);
\n\n
"
);
}
...
...
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