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
e7fbc9de
Commit
e7fbc9de
authored
Aug 29, 2010
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Fix compilation on systems that don't support nameless unions.
parent
6f1326fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
xdnd.c
dlls/winex11.drv/xdnd.c
+5
-3
No files found.
dlls/winex11.drv/xdnd.c
View file @
e7fbc9de
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
#include <stdarg.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdio.h>
#define NONAMELESSUNION
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "wingdi.h"
#include "wingdi.h"
...
@@ -996,10 +998,10 @@ static HRESULT WINAPI XDNDDATAOBJECT_GetData(IDataObject *dataObject,
...
@@ -996,10 +998,10 @@ static HRESULT WINAPI XDNDDATAOBJECT_GetData(IDataObject *dataObject,
if
(
current
->
cf_win
==
formatEtc
->
cfFormat
)
if
(
current
->
cf_win
==
formatEtc
->
cfFormat
)
{
{
pMedium
->
tymed
=
TYMED_HGLOBAL
;
pMedium
->
tymed
=
TYMED_HGLOBAL
;
pMedium
->
hGlobal
=
HeapAlloc
(
GetProcessHeap
(),
0
,
current
->
size
);
pMedium
->
u
.
hGlobal
=
HeapAlloc
(
GetProcessHeap
(),
0
,
current
->
size
);
if
(
pMedium
->
hGlobal
==
NULL
)
if
(
pMedium
->
u
.
hGlobal
==
NULL
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
memcpy
(
pMedium
->
hGlobal
,
current
->
data
,
current
->
size
);
memcpy
(
pMedium
->
u
.
hGlobal
,
current
->
data
,
current
->
size
);
pMedium
->
pUnkForRelease
=
0
;
pMedium
->
pUnkForRelease
=
0
;
return
S_OK
;
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