From 18018f6c0b1bf87bc1403c02b10761a356501dc2 Mon Sep 17 00:00:00 2001 From: Austin English Date: Mon, 12 Jan 2009 12:23:25 -0600 Subject: [PATCH] ole32: add a test for OleInitialize --- dlls/ole32/tests/clipboard.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/dlls/ole32/tests/clipboard.c b/dlls/ole32/tests/clipboard.c index 8445f8b..fee994d 100644 --- a/dlls/ole32/tests/clipboard.c +++ b/dlls/ole32/tests/clipboard.c @@ -448,9 +448,14 @@ static void test_set_clipboard(void) "CO_E_NOTINITIALIZED or CLIPBRD_E_CANT_SET instead of 0x%08x\n", hr); CoUninitialize(); + /* Calling OleInitialize the first time should return S_OK */ hr = OleInitialize(NULL); ok(hr == S_OK, "OleInitialize failed with error 0x%08x\n", hr); + /* Subsequent calls to OleInitialize should return S_FALSE */ + hr = OleInitialize(NULL); + ok(hr == S_FALSE, "OleInitialize failed with error 0x%08x\n", hr); + hr = OleSetClipboard(data1); ok(hr == S_OK, "failed to set clipboard to data1, hr = 0x%08x\n", hr); hr = OleIsCurrentClipboard(data1); -- 1.5.4.3