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
8897f603
Commit
8897f603
authored
May 08, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
May 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: COM cleanup for internal loading structures.
parent
ddcd368b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
typelib.c
dlls/oleaut32/typelib.c
+12
-12
No files found.
dlls/oleaut32/typelib.c
View file @
8897f603
...
@@ -2458,7 +2458,7 @@ static CRITICAL_SECTION cache_section = { &cache_section_debug, -1, 0, 0, 0, 0 }
...
@@ -2458,7 +2458,7 @@ static CRITICAL_SECTION cache_section = { &cache_section_debug, -1, 0, 0, 0, 0 }
typedef
struct
TLB_PEFile
typedef
struct
TLB_PEFile
{
{
const
IUnknownVtbl
*
lpvtbl
;
IUnknown
IUnknown_iface
;
LONG
refs
;
LONG
refs
;
HMODULE
dll
;
HMODULE
dll
;
HRSRC
typelib_resource
;
HRSRC
typelib_resource
;
...
@@ -2515,7 +2515,7 @@ static HRESULT TLB_PEFile_Open(LPCWSTR path, INT index, LPVOID *ppBase, DWORD *p
...
@@ -2515,7 +2515,7 @@ static HRESULT TLB_PEFile_Open(LPCWSTR path, INT index, LPVOID *ppBase, DWORD *p
if
(
!
This
)
if
(
!
This
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
This
->
lpv
tbl
=
&
TLB_PEFile_Vtable
;
This
->
IUnknown_iface
.
lpV
tbl
=
&
TLB_PEFile_Vtable
;
This
->
refs
=
1
;
This
->
refs
=
1
;
This
->
dll
=
NULL
;
This
->
dll
=
NULL
;
This
->
typelib_resource
=
NULL
;
This
->
typelib_resource
=
NULL
;
...
@@ -2540,7 +2540,7 @@ static HRESULT TLB_PEFile_Open(LPCWSTR path, INT index, LPVOID *ppBase, DWORD *p
...
@@ -2540,7 +2540,7 @@ static HRESULT TLB_PEFile_Open(LPCWSTR path, INT index, LPVOID *ppBase, DWORD *p
{
{
*
pdwTLBLength
=
SizeofResource
(
This
->
dll
,
This
->
typelib_resource
);
*
pdwTLBLength
=
SizeofResource
(
This
->
dll
,
This
->
typelib_resource
);
*
ppBase
=
This
->
typelib_base
;
*
ppBase
=
This
->
typelib_base
;
*
ppFile
=
(
IUnknown
*
)
&
This
->
lpvtbl
;
*
ppFile
=
&
This
->
IUnknown_iface
;
return
S_OK
;
return
S_OK
;
}
}
}
}
...
@@ -2550,13 +2550,13 @@ static HRESULT TLB_PEFile_Open(LPCWSTR path, INT index, LPVOID *ppBase, DWORD *p
...
@@ -2550,13 +2550,13 @@ static HRESULT TLB_PEFile_Open(LPCWSTR path, INT index, LPVOID *ppBase, DWORD *p
hr
=
E_FAIL
;
hr
=
E_FAIL
;
}
}
TLB_PEFile_Release
(
(
IUnknown
*
)
&
This
->
lpvtbl
);
TLB_PEFile_Release
(
&
This
->
IUnknown_iface
);
return
hr
;
return
hr
;
}
}
typedef
struct
TLB_NEFile
typedef
struct
TLB_NEFile
{
{
const
IUnknownVtbl
*
lpvtbl
;
IUnknown
IUnknown_iface
;
LONG
refs
;
LONG
refs
;
LPVOID
typelib_base
;
LPVOID
typelib_base
;
}
TLB_NEFile
;
}
TLB_NEFile
;
...
@@ -2738,7 +2738,7 @@ static HRESULT TLB_NEFile_Open(LPCWSTR path, INT index, LPVOID *ppBase, DWORD *p
...
@@ -2738,7 +2738,7 @@ static HRESULT TLB_NEFile_Open(LPCWSTR path, INT index, LPVOID *ppBase, DWORD *p
This
=
heap_alloc
(
sizeof
(
TLB_NEFile
));
This
=
heap_alloc
(
sizeof
(
TLB_NEFile
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
lpv
tbl
=
&
TLB_NEFile_Vtable
;
This
->
IUnknown_iface
.
lpV
tbl
=
&
TLB_NEFile_Vtable
;
This
->
refs
=
1
;
This
->
refs
=
1
;
This
->
typelib_base
=
NULL
;
This
->
typelib_base
=
NULL
;
...
@@ -2758,20 +2758,20 @@ static HRESULT TLB_NEFile_Open(LPCWSTR path, INT index, LPVOID *ppBase, DWORD *p
...
@@ -2758,20 +2758,20 @@ static HRESULT TLB_NEFile_Open(LPCWSTR path, INT index, LPVOID *ppBase, DWORD *p
LZClose
(
lzfd
);
LZClose
(
lzfd
);
*
ppBase
=
This
->
typelib_base
;
*
ppBase
=
This
->
typelib_base
;
*
pdwTLBLength
=
reslen
;
*
pdwTLBLength
=
reslen
;
*
ppFile
=
(
IUnknown
*
)
&
This
->
lpvtbl
;
*
ppFile
=
&
This
->
IUnknown_iface
;
return
S_OK
;
return
S_OK
;
}
}
}
}
}
}
if
(
lzfd
>=
0
)
LZClose
(
lzfd
);
if
(
lzfd
>=
0
)
LZClose
(
lzfd
);
TLB_NEFile_Release
(
(
IUnknown
*
)
&
This
->
lpvtbl
);
TLB_NEFile_Release
(
&
This
->
IUnknown_iface
);
return
hr
;
return
hr
;
}
}
typedef
struct
TLB_Mapping
typedef
struct
TLB_Mapping
{
{
const
IUnknownVtbl
*
lpvtbl
;
IUnknown
IUnknown_iface
;
LONG
refs
;
LONG
refs
;
HANDLE
file
;
HANDLE
file
;
HANDLE
mapping
;
HANDLE
mapping
;
...
@@ -2828,7 +2828,7 @@ static HRESULT TLB_Mapping_Open(LPCWSTR path, LPVOID *ppBase, DWORD *pdwTLBLengt
...
@@ -2828,7 +2828,7 @@ static HRESULT TLB_Mapping_Open(LPCWSTR path, LPVOID *ppBase, DWORD *pdwTLBLengt
if
(
!
This
)
if
(
!
This
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
This
->
lpv
tbl
=
&
TLB_Mapping_Vtable
;
This
->
IUnknown_iface
.
lpV
tbl
=
&
TLB_Mapping_Vtable
;
This
->
refs
=
1
;
This
->
refs
=
1
;
This
->
file
=
INVALID_HANDLE_VALUE
;
This
->
file
=
INVALID_HANDLE_VALUE
;
This
->
mapping
=
NULL
;
This
->
mapping
=
NULL
;
...
@@ -2846,13 +2846,13 @@ static HRESULT TLB_Mapping_Open(LPCWSTR path, LPVOID *ppBase, DWORD *pdwTLBLengt
...
@@ -2846,13 +2846,13 @@ static HRESULT TLB_Mapping_Open(LPCWSTR path, LPVOID *ppBase, DWORD *pdwTLBLengt
/* retrieve file size */
/* retrieve file size */
*
pdwTLBLength
=
GetFileSize
(
This
->
file
,
NULL
);
*
pdwTLBLength
=
GetFileSize
(
This
->
file
,
NULL
);
*
ppBase
=
This
->
typelib_base
;
*
ppBase
=
This
->
typelib_base
;
*
ppFile
=
(
IUnknown
*
)
&
This
->
lpvtbl
;
*
ppFile
=
&
This
->
IUnknown_iface
;
return
S_OK
;
return
S_OK
;
}
}
}
}
}
}
IUnknown_Release
(
(
IUnknown
*
)
&
This
->
lpvtbl
);
IUnknown_Release
(
&
This
->
IUnknown_iface
);
return
TYPE_E_CANTLOADLIBRARY
;
return
TYPE_E_CANTLOADLIBRARY
;
}
}
...
...
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