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
0eeb0420
Commit
0eeb0420
authored
Dec 18, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Make OleSetClipboard affected by previous OleInitialize() calls.
parent
c983cd64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
clipboard.c
dlls/ole32/clipboard.c
+9
-0
clipboard.c
dlls/ole32/tests/clipboard.c
+0
-2
No files found.
dlls/ole32/clipboard.c
View file @
0eeb0420
...
...
@@ -78,6 +78,8 @@
#include "storage32.h"
#include "compobj_private.h"
#define HANDLE_ERROR(err) { hr = err; TRACE("(HRESULT=%x)\n", (HRESULT)err); goto CLEANUP; }
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
...
...
@@ -313,6 +315,7 @@ HRESULT WINAPI OleSetClipboard(IDataObject* pDataObj)
IEnumFORMATETC
*
penumFormatetc
=
NULL
;
FORMATETC
rgelt
;
BOOL
bClipboardOpen
=
FALSE
;
struct
oletls
*
info
=
COM_CurrentInfo
();
/*
HGLOBAL hDataObject = 0;
OLEClipbrd **ppDataObject;
...
...
@@ -320,6 +323,12 @@ HRESULT WINAPI OleSetClipboard(IDataObject* pDataObj)
TRACE
(
"(%p)
\n
"
,
pDataObj
);
if
(
!
info
)
WARN
(
"Could not allocate tls
\n
"
);
else
if
(
!
info
->
ole_inits
)
return
CO_E_NOTINITIALIZED
;
/*
* Make sure we have a clipboard object
*/
...
...
dlls/ole32/tests/clipboard.c
View file @
0eeb0420
...
...
@@ -439,12 +439,10 @@ static void test_set_clipboard(void)
return
;
hr
=
OleSetClipboard
(
data1
);
todo_wine
ok
(
hr
==
CO_E_NOTINITIALIZED
,
"OleSetClipboard should have failed with CO_E_NOTINITIALIZED instead of 0x%08x
\n
"
,
hr
);
CoInitialize
(
NULL
);
hr
=
OleSetClipboard
(
data1
);
todo_wine
ok
(
hr
==
CO_E_NOTINITIALIZED
||
hr
==
CLIPBRD_E_CANT_SET
,
/* win9x */
"OleSetClipboard should have failed with "
...
...
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