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
80296792
Commit
80296792
authored
Jan 06, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Do not store full DLL path in the registry.
parent
e82d2285
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
12 deletions
+5
-12
dllsetup.c
dlls/qcap/dllsetup.c
+2
-6
dllsetup.h
dlls/qcap/dllsetup.h
+1
-2
qcap_main.c
dlls/qcap/qcap_main.c
+2
-4
No files found.
dlls/qcap/dllsetup.c
View file @
80296792
...
@@ -271,17 +271,13 @@ static HRESULT SetupRegisterAllClasses(const CFactoryTemplate * pList, int num,
...
@@ -271,17 +271,13 @@ static HRESULT SetupRegisterAllClasses(const CFactoryTemplate * pList, int num,
*
*
****************************************************************************/
****************************************************************************/
HRESULT
SetupRegisterServers
(
const
CFactoryTemplate
*
pList
,
int
num
,
HRESULT
SetupRegisterServers
(
const
CFactoryTemplate
*
pList
,
int
num
,
HINSTANCE
hinst
,
BOOL
bRegister
)
BOOL
bRegister
)
{
{
static
const
WCHAR
szFileName
[]
=
{
'q'
,
'c'
,
'a'
,
'p'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
HRESULT
hr
=
NOERROR
;
HRESULT
hr
=
NOERROR
;
WCHAR
szFileName
[
MAX_PATH
];
IFilterMapper2
*
pIFM2
=
NULL
;
IFilterMapper2
*
pIFM2
=
NULL
;
IFilterMapper
*
pIFM
=
NULL
;
IFilterMapper
*
pIFM
=
NULL
;
/* Win95 wouldn't support the Unicode version of this API!! */
if
(
!
GetModuleFileNameW
(
hinst
,
szFileName
,
MAX_PATH
))
return
HRESULT_FROM_WIN32
(
GetLastError
());
/* first register all server classes, just to make sure */
/* first register all server classes, just to make sure */
if
(
bRegister
)
if
(
bRegister
)
hr
=
SetupRegisterAllClasses
(
pList
,
num
,
szFileName
,
TRUE
);
hr
=
SetupRegisterAllClasses
(
pList
,
num
,
szFileName
,
TRUE
);
...
...
dlls/qcap/dllsetup.h
View file @
80296792
...
@@ -66,8 +66,7 @@ typedef struct tagCFactoryTemplate {
...
@@ -66,8 +66,7 @@ typedef struct tagCFactoryTemplate {
* CFactoryTemplate
* CFactoryTemplate
*
*
****************************************************************************/
****************************************************************************/
extern
HRESULT
SetupRegisterServers
(
const
CFactoryTemplate
*
pList
,
int
num
,
extern
HRESULT
SetupRegisterServers
(
const
CFactoryTemplate
*
pList
,
int
num
,
BOOL
bRegister
);
HINSTANCE
hinst
,
BOOL
bRegister
);
/****************************************************************************
/****************************************************************************
* SetupInitializeServers
* SetupInitializeServers
...
...
dlls/qcap/qcap_main.c
View file @
80296792
...
@@ -45,7 +45,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(qcap);
...
@@ -45,7 +45,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(qcap);
static
LONG
objects_ref
=
0
;
static
LONG
objects_ref
=
0
;
static
LONG
server_locks
=
0
;
static
LONG
server_locks
=
0
;
static
HINSTANCE
ghInst
=
NULL
;
static
const
WCHAR
wAudioCaptFilter
[]
=
static
const
WCHAR
wAudioCaptFilter
[]
=
{
'A'
,
'u'
,
'd'
,
'i'
,
'o'
,
' '
,
'C'
,
'a'
,
'p'
,
't'
,
'u'
,
'r'
,
'e'
,
' '
,
'F'
,
'i'
,
'l'
,
't'
,
'e'
,
'r'
,
0
};
{
'A'
,
'u'
,
'd'
,
'i'
,
'o'
,
' '
,
'C'
,
'a'
,
'p'
,
't'
,
'u'
,
'r'
,
'e'
,
' '
,
'F'
,
'i'
,
'l'
,
't'
,
'e'
,
'r'
,
0
};
...
@@ -158,7 +157,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
...
@@ -158,7 +157,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{
{
case
DLL_PROCESS_ATTACH
:
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hInstDLL
);
DisableThreadLibraryCalls
(
hInstDLL
);
ghInst
=
hInstDLL
;
SetupInitializeServers
(
g_cTemplates
,
g_numTemplates
,
TRUE
);
SetupInitializeServers
(
g_cTemplates
,
g_numTemplates
,
TRUE
);
break
;
break
;
case
DLL_PROCESS_DETACH
:
case
DLL_PROCESS_DETACH
:
...
@@ -175,7 +173,7 @@ HRESULT WINAPI DllRegisterServer(void)
...
@@ -175,7 +173,7 @@ HRESULT WINAPI DllRegisterServer(void)
{
{
TRACE
(
"()
\n
"
);
TRACE
(
"()
\n
"
);
return
SetupRegisterServers
(
g_cTemplates
,
g_numTemplates
,
ghInst
,
TRUE
);
return
SetupRegisterServers
(
g_cTemplates
,
g_numTemplates
,
TRUE
);
}
}
/***********************************************************************
/***********************************************************************
...
@@ -185,7 +183,7 @@ HRESULT WINAPI DllUnregisterServer(void)
...
@@ -185,7 +183,7 @@ HRESULT WINAPI DllUnregisterServer(void)
{
{
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
return
SetupRegisterServers
(
g_cTemplates
,
g_numTemplates
,
ghInst
,
FALSE
);
return
SetupRegisterServers
(
g_cTemplates
,
g_numTemplates
,
FALSE
);
}
}
/***********************************************************************
/***********************************************************************
...
...
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