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
4782be7e
Commit
4782be7e
authored
Jan 14, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hnetcfg: Release typeinfos and typelib on dll unload.
parent
aef50786
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
apps.c
dlls/hnetcfg/apps.c
+12
-0
hnetcfg.c
dlls/hnetcfg/hnetcfg.c
+6
-2
hnetcfg_private.h
dlls/hnetcfg/hnetcfg_private.h
+1
-0
No files found.
dlls/hnetcfg/apps.c
View file @
4782be7e
...
@@ -148,6 +148,18 @@ HRESULT get_typeinfo( enum type_id tid, ITypeInfo **ret )
...
@@ -148,6 +148,18 @@ HRESULT get_typeinfo( enum type_id tid, ITypeInfo **ret )
return
S_OK
;
return
S_OK
;
}
}
void
release_typelib
(
void
)
{
unsigned
i
;
for
(
i
=
0
;
i
<
sizeof
(
typeinfo
)
/
sizeof
(
*
typeinfo
);
i
++
)
if
(
typeinfo
[
i
])
ITypeInfo_Release
(
typeinfo
[
i
]);
if
(
typelib
)
ITypeLib_Release
(
typelib
);
}
static
HRESULT
WINAPI
fw_app_GetTypeInfo
(
static
HRESULT
WINAPI
fw_app_GetTypeInfo
(
INetFwAuthorizedApplication
*
iface
,
INetFwAuthorizedApplication
*
iface
,
UINT
iTInfo
,
UINT
iTInfo
,
...
...
dlls/hnetcfg/hnetcfg.c
View file @
4782be7e
...
@@ -114,9 +114,9 @@ static hnetcfg_cf fw_manager_cf = { { &hnetcfg_cf_vtbl }, NetFwMgr_create };
...
@@ -114,9 +114,9 @@ static hnetcfg_cf fw_manager_cf = { { &hnetcfg_cf_vtbl }, NetFwMgr_create };
static
hnetcfg_cf
fw_app_cf
=
{
{
&
hnetcfg_cf_vtbl
},
NetFwAuthorizedApplication_create
};
static
hnetcfg_cf
fw_app_cf
=
{
{
&
hnetcfg_cf_vtbl
},
NetFwAuthorizedApplication_create
};
static
hnetcfg_cf
fw_openport_cf
=
{
{
&
hnetcfg_cf_vtbl
},
NetFwOpenPort_create
};
static
hnetcfg_cf
fw_openport_cf
=
{
{
&
hnetcfg_cf_vtbl
},
NetFwOpenPort_create
};
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpvR
eserved
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
r
eserved
)
{
{
TRACE
(
"(0x%p, %d, %p)
\n
"
,
hInstDLL
,
fdwReason
,
lpvR
eserved
);
TRACE
(
"(0x%p, %d, %p)
\n
"
,
hInstDLL
,
fdwReason
,
r
eserved
);
switch
(
fdwReason
)
{
switch
(
fdwReason
)
{
case
DLL_WINE_PREATTACH
:
case
DLL_WINE_PREATTACH
:
...
@@ -125,6 +125,10 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
...
@@ -125,6 +125,10 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
instance
=
hInstDLL
;
instance
=
hInstDLL
;
DisableThreadLibraryCalls
(
hInstDLL
);
DisableThreadLibraryCalls
(
hInstDLL
);
break
;
break
;
case
DLL_PROCESS_DETACH
:
if
(
reserved
)
break
;
release_typelib
();
break
;
}
}
return
TRUE
;
return
TRUE
;
}
}
...
...
dlls/hnetcfg/hnetcfg_private.h
View file @
4782be7e
...
@@ -28,6 +28,7 @@ enum type_id
...
@@ -28,6 +28,7 @@ enum type_id
};
};
HRESULT
get_typeinfo
(
enum
type_id
,
ITypeInfo
**
)
DECLSPEC_HIDDEN
;
HRESULT
get_typeinfo
(
enum
type_id
,
ITypeInfo
**
)
DECLSPEC_HIDDEN
;
void
release_typelib
(
void
)
DECLSPEC_HIDDEN
;
HRESULT
NetFwMgr_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
NetFwMgr_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
NetFwPolicy_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
NetFwPolicy_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
...
...
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