Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7ab7a741
Commit
7ab7a741
authored
Feb 18, 2009
by
Ricardo Filipe
Committed by
Alexandre Julliard
Feb 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Make hinstance global for all dialogs.
parent
1056771b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
setupapi_private.h
dlls/setupapi/setupapi_private.h
+2
-0
setupcab.c
dlls/setupapi/setupcab.c
+2
-0
virtcopy.c
dlls/setupapi/virtcopy.c
+0
-9
No files found.
dlls/setupapi/setupapi_private.h
View file @
7ab7a741
...
...
@@ -29,6 +29,8 @@
#define REGPART_RENAME "\\Rename"
#define REG_VERSIONCONFLICT "Software\\Microsoft\\VersionConflictManager"
extern
HINSTANCE
SETUPAPI_hInstance
;
static
inline
WCHAR
*
strdupW
(
const
WCHAR
*
str
)
{
WCHAR
*
ret
=
NULL
;
...
...
dlls/setupapi/setupcab.c
View file @
7ab7a741
...
...
@@ -65,6 +65,7 @@
OSVERSIONINFOW
OsVersionInfo
;
static
HINSTANCE
CABINET_hInstance
=
0
;
HINSTANCE
SETUPAPI_hInstance
=
0
;
static
HFDI
(
__cdecl
*
sc_FDICreate
)(
PFNALLOC
,
PFNFREE
,
PFNOPEN
,
PFNREAD
,
PFNWRITE
,
PFNCLOSE
,
PFNSEEK
,
int
,
PERF
);
...
...
@@ -695,6 +696,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
OsVersionInfo
.
dwOSVersionInfoSize
=
sizeof
(
OSVERSIONINFOW
);
if
(
!
GetVersionExW
(
&
OsVersionInfo
))
return
FALSE
;
SETUPAPI_hInstance
=
hinstDLL
;
break
;
case
DLL_PROCESS_DETACH
:
UnloadCABINETDll
();
...
...
dlls/setupapi/virtcopy.c
View file @
7ab7a741
...
...
@@ -43,8 +43,6 @@ static BOOL VCP_opened = FALSE;
static
VCPSTATUS
vcp_status
;
static
HINSTANCE
SETUPAPI_hInstance
;
static
WORD
VCP_Callback
(
LPVOID
obj
,
UINT16
msg
,
WPARAM16
wParam
,
LPARAM
lParam
,
LPARAM
lParamRef
)
{
WORD
args
[
8
];
...
...
@@ -308,13 +306,6 @@ RETERR16 WINAPI VcpOpen16(VIFPROC vifproc, LPARAM lparamMsgRef)
VCP_Proc
=
(
FARPROC16
)
vifproc
;
VCP_MsgRef
=
lparamMsgRef
;
/* load SETUPAPI needed for dialog resources etc. */
SETUPAPI_hInstance
=
GetModuleHandleA
(
"setupapi.dll"
);
if
(
!
SETUPAPI_hInstance
)
{
ERR
(
"Could not load sibling setupapi.dll
\n
"
);
return
ERR_VCP_NOMEM
;
}
VCP_opened
=
TRUE
;
return
OK
;
}
...
...
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