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
8c1911f6
Commit
8c1911f6
authored
Jan 15, 2003
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate the HINSTANCEs used by GetShellOle() and other delay load
functions.
parent
6bbce6cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
18 deletions
+19
-18
clipboard.c
dlls/shell32/clipboard.c
+19
-18
No files found.
dlls/shell32/clipboard.c
View file @
8c1911f6
...
...
@@ -63,24 +63,25 @@ HRESULT (WINAPI *pOleGetClipboard)(IDataObject** ppDataObj);
*/
BOOL
GetShellOle
(
void
)
{
if
(
!
hShellOle32
)
{
hShellOle32
=
LoadLibraryA
(
"ole32.dll"
);
if
(
hShellOle32
)
{
pOleInitialize
=
(
void
*
)
GetProcAddress
(
hShellOle32
,
"OleInitialize"
);
pOleUninitialize
=
(
void
*
)
GetProcAddress
(
hShellOle32
,
"OleUninitialize"
);
pRegisterDragDrop
=
(
void
*
)
GetProcAddress
(
hShellOle32
,
"RegisterDragDrop"
);
pRevokeDragDrop
=
(
void
*
)
GetProcAddress
(
hShellOle32
,
"RevokeDragDrop"
);
pDoDragDrop
=
(
void
*
)
GetProcAddress
(
hShellOle32
,
"DoDragDrop"
);
pReleaseStgMedium
=
(
void
*
)
GetProcAddress
(
hShellOle32
,
"ReleaseStgMedium"
);
pOleSetClipboard
=
(
void
*
)
GetProcAddress
(
hShellOle32
,
"OleSetClipboard"
);
pOleGetClipboard
=
(
void
*
)
GetProcAddress
(
hShellOle32
,
"OleGetClipboard"
);
pOleInitialize
(
NULL
);
}
}
return
TRUE
;
static
HANDLE
hOle32
=
NULL
;
if
(
!
hOle32
)
{
hOle32
=
LoadLibraryA
(
"ole32.dll"
);
if
(
hOle32
)
{
pOleInitialize
=
(
void
*
)
GetProcAddress
(
hOle32
,
"OleInitialize"
);
pOleUninitialize
=
(
void
*
)
GetProcAddress
(
hOle32
,
"OleUninitialize"
);
pRegisterDragDrop
=
(
void
*
)
GetProcAddress
(
hOle32
,
"RegisterDragDrop"
);
pRevokeDragDrop
=
(
void
*
)
GetProcAddress
(
hOle32
,
"RevokeDragDrop"
);
pDoDragDrop
=
(
void
*
)
GetProcAddress
(
hOle32
,
"DoDragDrop"
);
pReleaseStgMedium
=
(
void
*
)
GetProcAddress
(
hOle32
,
"ReleaseStgMedium"
);
pOleSetClipboard
=
(
void
*
)
GetProcAddress
(
hOle32
,
"OleSetClipboard"
);
pOleGetClipboard
=
(
void
*
)
GetProcAddress
(
hOle32
,
"OleGetClipboard"
);
pOleInitialize
(
NULL
);
}
}
return
TRUE
;
}
/**************************************************************************
...
...
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