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
c6c3ccad
Commit
c6c3ccad
authored
Mar 12, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Remove confusing uses of the __thiscall specifier.
parent
603bc1d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
19 deletions
+7
-19
stg_prop.c
dlls/ole32/stg_prop.c
+5
-11
propvariant.c
dlls/ole32/tests/propvariant.c
+2
-8
No files found.
dlls/ole32/stg_prop.c
View file @
c6c3ccad
...
...
@@ -1034,13 +1034,7 @@ static HRESULT PropertyStorage_ReadDictionary(PropertyStorage_impl *This,
return
hr
;
}
#ifdef __i386__
#define __thiscall __stdcall
#else
#define __thiscall __cdecl
#endif
static
__thiscall
void
*
Allocate_CoTaskMemAlloc
(
void
*
userdata
,
ULONG
size
)
static
void
*
WINAPI
Allocate_CoTaskMemAlloc
(
void
*
this
,
ULONG
size
)
{
return
CoTaskMemAlloc
(
size
);
}
...
...
@@ -1049,7 +1043,7 @@ static __thiscall void* Allocate_CoTaskMemAlloc(void *userdata, ULONG size)
* end of the buffer.
*/
static
HRESULT
PropertyStorage_ReadProperty
(
PROPVARIANT
*
prop
,
const
BYTE
*
data
,
UINT
codepage
,
void
*
(
__thiscall
*
allocate
)(
void
*
userdata
,
ULONG
size
),
void
*
allocate_data
)
UINT
codepage
,
void
*
(
WINAPI
*
allocate
)(
void
*
this
,
ULONG
size
),
void
*
allocate_data
)
{
HRESULT
hr
=
S_OK
;
...
...
@@ -2738,13 +2732,13 @@ end:
"jmp *(4*(" #num "))(%eax)" )
DEFINE_STDCALL_WRAPPER
(
0
,
Allocate_PMemoryAllocator
,
8
)
extern
void
*
__thiscall
Allocate_PMemoryAllocator
(
void
*
this
,
ULONG
cbSize
);
extern
void
*
WINAPI
Allocate_PMemoryAllocator
(
void
*
this
,
ULONG
cbSize
);
#else
static
void
*
__thiscall
Allocate_PMemoryAllocator
(
void
*
this
,
ULONG
cbSize
)
static
void
*
WINAPI
Allocate_PMemoryAllocator
(
void
*
this
,
ULONG
cbSize
)
{
void
*
(
__thiscall
*
fn
)(
void
*
,
ULONG
)
=
**
(
void
***
)
this
;
void
*
(
WINAPI
*
fn
)(
void
*
,
ULONG
)
=
**
(
void
***
)
this
;
return
fn
(
this
,
cbSize
);
}
...
...
dlls/ole32/tests/propvariant.c
View file @
c6c3ccad
...
...
@@ -349,18 +349,12 @@ typedef struct _PMemoryAllocator {
struct
_PMemoryAllocator_vtable
*
vt
;
}
PMemoryAllocator
;
#ifdef __i386__
#define __thiscall __stdcall
#else
#define __thiscall __cdecl
#endif
static
void
*
__thiscall
PMemoryAllocator_Allocate
(
PMemoryAllocator
*
_this
,
ULONG
cbSize
)
static
void
*
WINAPI
PMemoryAllocator_Allocate
(
PMemoryAllocator
*
_this
,
ULONG
cbSize
)
{
return
CoTaskMemAlloc
(
cbSize
);
}
static
void
__thiscall
PMemoryAllocator_Free
(
PMemoryAllocator
*
_this
,
void
*
pv
)
static
void
WINAPI
PMemoryAllocator_Free
(
PMemoryAllocator
*
_this
,
void
*
pv
)
{
CoTaskMemFree
(
pv
);
}
...
...
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