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
8e32b5f8
Commit
8e32b5f8
authored
May 27, 2014
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Jun 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Use the global memory functions to allocate the memory for STGMEDIUM's hGlobal.
parent
a8499c08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
xdnd.c
dlls/winex11.drv/xdnd.c
+3
-2
No files found.
dlls/winex11.drv/xdnd.c
View file @
8e32b5f8
...
...
@@ -977,10 +977,11 @@ static HRESULT WINAPI XDNDDATAOBJECT_GetData(IDataObject *dataObject,
if
(
current
->
cf_win
==
formatEtc
->
cfFormat
)
{
pMedium
->
tymed
=
TYMED_HGLOBAL
;
pMedium
->
u
.
hGlobal
=
HeapAlloc
(
GetProcessHeap
(),
0
,
current
->
size
);
pMedium
->
u
.
hGlobal
=
GlobalAlloc
(
GMEM_FIXED
|
GMEM_ZEROINIT
,
current
->
size
);
if
(
pMedium
->
u
.
hGlobal
==
NULL
)
return
E_OUTOFMEMORY
;
memcpy
(
pMedium
->
u
.
hGlobal
,
current
->
data
,
current
->
size
);
memcpy
(
GlobalLock
(
pMedium
->
u
.
hGlobal
),
current
->
data
,
current
->
size
);
GlobalUnlock
(
pMedium
->
u
.
hGlobal
);
pMedium
->
pUnkForRelease
=
0
;
return
S_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