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
8aaf3233
Commit
8aaf3233
authored
Apr 03, 2011
by
Andrew Nguyen
Committed by
Alexandre Julliard
Apr 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxdiagn: Broaden the scope of the DLL instance handle.
parent
ff1285ac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
dxdiag_main.c
dlls/dxdiagn/dxdiag_main.c
+4
-4
dxdiag_private.h
dlls/dxdiagn/dxdiag_private.h
+2
-0
No files found.
dlls/dxdiagn/dxdiag_main.c
View file @
8aaf3233
...
...
@@ -34,7 +34,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dxdiag
);
static
HINSTANCE
instance
;
HINSTANCE
dxdiagn_instance
=
0
;
LONG
DXDIAGN_refCount
=
0
;
...
...
@@ -43,7 +43,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
TRACE
(
"%p,%x,%p
\n
"
,
hInstDLL
,
fdwReason
,
lpvReserved
);
if
(
fdwReason
==
DLL_PROCESS_ATTACH
)
{
instance
=
hInstDLL
;
dxdiagn_
instance
=
hInstDLL
;
DisableThreadLibraryCalls
(
hInstDLL
);
}
return
TRUE
;
...
...
@@ -143,7 +143,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
*/
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
return
__wine_register_resources
(
instance
,
NULL
);
return
__wine_register_resources
(
dxdiagn_
instance
,
NULL
);
}
/***********************************************************************
...
...
@@ -151,5 +151,5 @@ HRESULT WINAPI DllRegisterServer(void)
*/
HRESULT
WINAPI
DllUnregisterServer
(
void
)
{
return
__wine_unregister_resources
(
instance
,
NULL
);
return
__wine_unregister_resources
(
dxdiagn_
instance
,
NULL
);
}
dlls/dxdiagn/dxdiag_private.h
View file @
8aaf3233
...
...
@@ -100,4 +100,6 @@ extern LONG DXDIAGN_refCount;
static
inline
void
DXDIAGN_LockModule
(
void
)
{
InterlockedIncrement
(
&
DXDIAGN_refCount
);
}
static
inline
void
DXDIAGN_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
DXDIAGN_refCount
);
}
extern
HINSTANCE
dxdiagn_instance
;
#endif
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