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
ac527f1e
Commit
ac527f1e
authored
Nov 28, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Rename the wrappers around HeapAlloc() &Co to use the new standard naming.
parent
241b25b5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
25 deletions
+25
-25
events.c
dlls/shdocvw/events.c
+5
-5
ie.c
dlls/shdocvw/ie.c
+1
-1
iexplore.c
dlls/shdocvw/iexplore.c
+2
-2
navigate.c
dlls/shdocvw/navigate.c
+4
-4
shdocvw.h
dlls/shdocvw/shdocvw.h
+3
-3
shlinstobj.c
dlls/shdocvw/shlinstobj.c
+7
-7
webbrowser.c
dlls/shdocvw/webbrowser.c
+3
-3
No files found.
dlls/shdocvw/events.c
View file @
ac527f1e
...
...
@@ -206,10 +206,10 @@ static HRESULT WINAPI ConnectionPoint_Advise(IConnectionPoint *iface, IUnknown *
}
if
(
i
==
This
->
sinks_size
)
This
->
sinks
=
shdocvw
_realloc
(
This
->
sinks
,
This
->
sinks
=
heap
_realloc
(
This
->
sinks
,
(
++
This
->
sinks_size
)
*
sizeof
(
*
This
->
sinks
));
}
else
{
This
->
sinks
=
shdocvw
_alloc
(
sizeof
(
*
This
->
sinks
));
This
->
sinks
=
heap
_alloc
(
sizeof
(
*
This
->
sinks
));
This
->
sinks_size
=
1
;
i
=
0
;
}
...
...
@@ -271,7 +271,7 @@ void call_sink(ConnectionPoint *This, DISPID dispid, DISPPARAMS *dispparams)
static
void
ConnectionPoint_Create
(
REFIID
riid
,
ConnectionPoint
**
cp
,
IConnectionPointContainer
*
container
)
{
ConnectionPoint
*
ret
=
shdocvw
_alloc
(
sizeof
(
ConnectionPoint
));
ConnectionPoint
*
ret
=
heap
_alloc
(
sizeof
(
ConnectionPoint
));
ret
->
lpConnectionPointVtbl
=
&
ConnectionPointVtbl
;
...
...
@@ -293,8 +293,8 @@ static void ConnectionPoint_Destroy(ConnectionPoint *This)
IDispatch_Release
(
This
->
sinks
[
i
]);
}
shdocvw
_free
(
This
->
sinks
);
shdocvw
_free
(
This
);
heap
_free
(
This
->
sinks
);
heap
_free
(
This
);
}
void
ConnectionPointContainer_Init
(
ConnectionPointContainer
*
This
,
IUnknown
*
impl
)
...
...
dlls/shdocvw/ie.c
View file @
ac527f1e
...
...
@@ -75,7 +75,7 @@ static ULONG WINAPI InternetExplorer_Release(IWebBrowser2 *iface)
if
(
!
ref
)
{
DocHost_Release
(
&
This
->
doc_host
);
shdocvw
_free
(
This
);
heap
_free
(
This
);
}
return
ref
;
...
...
dlls/shdocvw/iexplore.c
View file @
ac527f1e
...
...
@@ -161,7 +161,7 @@ HRESULT InternetExplorer_Create(IUnknown *pOuter, REFIID riid, void **ppv)
TRACE
(
"(%p %s %p)
\n
"
,
pOuter
,
debugstr_guid
(
riid
),
ppv
);
ret
=
shdocvw
_alloc
(
sizeof
(
InternetExplorer
));
ret
=
heap
_alloc
(
sizeof
(
InternetExplorer
));
ret
->
ref
=
0
;
ret
->
doc_host
.
disp
=
(
IDispatch
*
)
WEBBROWSER2
(
ret
);
...
...
@@ -174,7 +174,7 @@ HRESULT InternetExplorer_Create(IUnknown *pOuter, REFIID riid, void **ppv)
hres
=
IWebBrowser2_QueryInterface
(
WEBBROWSER2
(
ret
),
riid
,
ppv
);
if
(
FAILED
(
hres
))
{
shdocvw
_free
(
ret
);
heap
_free
(
ret
);
return
hres
;
}
...
...
dlls/shdocvw/navigate.c
View file @
ac527f1e
...
...
@@ -137,8 +137,8 @@ static ULONG WINAPI BindStatusCallback_Release(IBindStatusCallback *iface)
if
(
!
ref
)
{
if
(
This
->
post_data
)
GlobalFree
(
This
->
post_data
);
shdocvw
_free
(
This
->
headers
);
shdocvw
_free
(
This
);
heap
_free
(
This
->
headers
);
heap
_free
(
This
);
}
return
ref
;
...
...
@@ -293,7 +293,7 @@ static const IHttpNegotiateVtbl HttpNegotiateVtbl = {
static
IBindStatusCallback
*
create_callback
(
DocHost
*
This
,
PBYTE
post_data
,
ULONG
post_data_len
,
LPWSTR
headers
,
VARIANT_BOOL
*
cancel
)
{
BindStatusCallback
*
ret
=
shdocvw
_alloc
(
sizeof
(
BindStatusCallback
));
BindStatusCallback
*
ret
=
heap
_alloc
(
sizeof
(
BindStatusCallback
));
ret
->
lpBindStatusCallbackVtbl
=
&
BindStatusCallbackVtbl
;
ret
->
lpHttpNegotiateVtbl
=
&
HttpNegotiateVtbl
;
...
...
@@ -310,7 +310,7 @@ static IBindStatusCallback *create_callback(DocHost *This, PBYTE post_data,
if
(
headers
)
{
int
size
=
(
strlenW
(
headers
)
+
1
)
*
sizeof
(
WCHAR
);
ret
->
headers
=
shdocvw
_alloc
(
size
);
ret
->
headers
=
heap
_alloc
(
size
);
memcpy
(
ret
->
headers
,
headers
,
size
);
}
...
...
dlls/shdocvw/shdocvw.h
View file @
ac527f1e
...
...
@@ -226,17 +226,17 @@ DWORD register_iexplore(BOOL);
/* memory allocation functions */
static
inline
void
*
shdocvw
_alloc
(
size_t
len
)
static
inline
void
*
heap
_alloc
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
}
static
inline
void
*
shdocvw
_realloc
(
void
*
mem
,
size_t
len
)
static
inline
void
*
heap
_realloc
(
void
*
mem
,
size_t
len
)
{
return
HeapReAlloc
(
GetProcessHeap
(),
0
,
mem
,
len
);
}
static
inline
BOOL
shdocvw
_free
(
void
*
mem
)
static
inline
BOOL
heap
_free
(
void
*
mem
)
{
return
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
}
...
...
dlls/shdocvw/shlinstobj.c
View file @
ac527f1e
...
...
@@ -59,7 +59,7 @@ static void RegistryPropertyBag_Destroy(RegistryPropertyBag *This) {
TRACE
(
"This=%p)
\n
"
,
This
);
RegCloseKey
(
This
->
m_hInitPropertyBagKey
);
shdocvw
_free
(
This
);
heap
_free
(
This
);
}
static
HRESULT
WINAPI
RegistryPropertyBag_IPropertyBag_QueryInterface
(
IPropertyBag
*
iface
,
...
...
@@ -130,20 +130,20 @@ static HRESULT WINAPI RegistryPropertyBag_IPropertyBag_Read(IPropertyBag *iface,
if
(
res
!=
ERROR_SUCCESS
)
return
E_INVALIDARG
;
pwszValue
=
shdocvw
_alloc
(
cbData
);
pwszValue
=
heap
_alloc
(
cbData
);
if
(
!
pwszValue
)
return
E_OUTOFMEMORY
;
res
=
RegQueryValueExW
(
This
->
m_hInitPropertyBagKey
,
pwszPropName
,
NULL
,
&
dwType
,
(
LPBYTE
)
pwszValue
,
&
cbData
);
if
(
res
!=
ERROR_SUCCESS
)
{
shdocvw
_free
(
pwszValue
);
heap
_free
(
pwszValue
);
return
E_INVALIDARG
;
}
V_VT
(
pVar
)
=
VT_BSTR
;
V_BSTR
(
pVar
)
=
SysAllocString
(
pwszValue
);
shdocvw
_free
(
pwszValue
);
heap
_free
(
pwszValue
);
if
(
vtDst
!=
VT_BSTR
)
{
hr
=
VariantChangeTypeEx
(
pVar
,
pVar
,
LOCALE_SYSTEM_DEFAULT
,
0
,
vtDst
);
...
...
@@ -176,7 +176,7 @@ static HRESULT RegistryPropertyBag_Constructor(HKEY hInitPropertyBagKey, REFIID
TRACE
(
"(hInitPropertyBagKey=%p, riid=%s, ppvObject=%p)
\n
"
,
hInitPropertyBagKey
,
debugstr_guid
(
riid
),
ppvObject
);
pRegistryPropertyBag
=
shdocvw
_alloc
(
sizeof
(
RegistryPropertyBag
));
pRegistryPropertyBag
=
heap
_alloc
(
sizeof
(
RegistryPropertyBag
));
if
(
pRegistryPropertyBag
)
{
pRegistryPropertyBag
->
lpIPropertyBagVtbl
=
&
RegistryPropertyBag_IPropertyBagVtbl
;
pRegistryPropertyBag
->
m_cRef
=
0
;
...
...
@@ -206,7 +206,7 @@ typedef struct _InstanceObjectFactory {
static
void
InstanceObjectFactory_Destroy
(
InstanceObjectFactory
*
This
)
{
IPropertyBag_Release
(
This
->
m_pPropertyBag
);
shdocvw
_free
(
This
);
heap
_free
(
This
);
}
static
HRESULT
WINAPI
InstanceObjectFactory_IClassFactory_QueryInterface
(
IClassFactory
*
iface
,
...
...
@@ -322,7 +322,7 @@ static HRESULT InstanceObjectFactory_Constructor(REFCLSID rclsid, IPropertyBag *
TRACE
(
"(RegistryPropertyBag=%p, riid=%s, ppvObject=%p)
\n
"
,
pPropertyBag
,
debugstr_guid
(
riid
),
ppvObject
);
pInstanceObjectFactory
=
shdocvw
_alloc
(
sizeof
(
InstanceObjectFactory
));
pInstanceObjectFactory
=
heap
_alloc
(
sizeof
(
InstanceObjectFactory
));
if
(
pInstanceObjectFactory
)
{
pInstanceObjectFactory
->
lpIClassFactoryVtbl
=
&
InstanceObjectFactory_IClassFactoryVtbl
;
pInstanceObjectFactory
->
m_cRef
=
0
;
...
...
dlls/shdocvw/webbrowser.c
View file @
ac527f1e
...
...
@@ -148,7 +148,7 @@ static ULONG WINAPI WebBrowser_Release(IWebBrowser2 *iface)
WebBrowser_OleObject_Destroy
(
This
);
shdocvw
_free
(
This
);
heap
_free
(
This
);
SHDOCVW_UnlockModule
();
}
...
...
@@ -945,7 +945,7 @@ static HRESULT WebBrowser_Create(INT version, IUnknown *pOuter, REFIID riid, voi
TRACE
(
"(%p %s %p) version=%d
\n
"
,
pOuter
,
debugstr_guid
(
riid
),
ppv
,
version
);
ret
=
shdocvw
_alloc
(
sizeof
(
WebBrowser
));
ret
=
heap
_alloc
(
sizeof
(
WebBrowser
));
ret
->
lpWebBrowser2Vtbl
=
&
WebBrowser2Vtbl
;
ret
->
ref
=
0
;
...
...
@@ -970,7 +970,7 @@ static HRESULT WebBrowser_Create(INT version, IUnknown *pOuter, REFIID riid, voi
if
(
SUCCEEDED
(
hres
))
{
SHDOCVW_LockModule
();
}
else
{
shdocvw
_free
(
ret
);
heap
_free
(
ret
);
return
hres
;
}
...
...
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