[7/7] oleaut32/tests: Fix vartest tests compilation with __WINESRC__ defined
André Hentschel
nerv at dawncrow.de
Wed Oct 23 17:34:20 CDT 2013
---
dlls/oleaut32/tests/Makefile.in | 1 -
dlls/oleaut32/tests/vartest.c | 12 ++++++------
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/dlls/oleaut32/tests/Makefile.in b/dlls/oleaut32/tests/Makefile.in
index 5620411..e47e2fe 100644
--- a/dlls/oleaut32/tests/Makefile.in
+++ b/dlls/oleaut32/tests/Makefile.in
@@ -1,6 +1,5 @@
TESTDLL = oleaut32.dll
IMPORTS = oleaut32 ole32 rpcrt4 user32 gdi32 advapi32
-EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
C_SRCS = \
dispatch.c \
diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index 2840f47..a91eb7e 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -28,7 +28,7 @@
#include "windef.h"
#include "winbase.h"
-#include "winsock.h"
+#include "winsock2.h"
#include "wine/test.h"
#include "winuser.h"
#include "wingdi.h"
@@ -116,7 +116,7 @@ static void init(void)
if (bstr) memcpy(&sz12_false[2], bstr, SysStringByteLen(bstr) + sizeof(WCHAR));
SysFreeString(bstr);
- hOleaut32 = GetModuleHandle("oleaut32.dll");
+ hOleaut32 = GetModuleHandleA("oleaut32.dll");
has_i8 = GetProcAddress(hOleaut32, "VarI8FromI1") != NULL;
if (!has_i8)
skip("No support for I8 and UI8 data types\n");
@@ -5366,7 +5366,7 @@ static void test_VarCat(void)
static const WCHAR sz12_date[] = {'1','2','9','/','3','0','/','1','9','8','0','\0'};
static const WCHAR sz12_date_broken[] = {'1','2','9','/','3','0','/','8','0','\0'};
static const WCHAR sz_empty[] = {'\0'};
- TCHAR orig_date_format[128];
+ CHAR orig_date_format[128];
VARTYPE leftvt, rightvt, resultvt;
HRESULT hres;
HRESULT expected_error_num;
@@ -5375,8 +5375,8 @@ static void test_VarCat(void)
/* Set date format for testing */
lcid = LOCALE_USER_DEFAULT;
- GetLocaleInfo(lcid,LOCALE_SSHORTDATE,orig_date_format,128);
- SetLocaleInfo(lcid,LOCALE_SSHORTDATE,"M/d/yyyy");
+ GetLocaleInfoA(lcid,LOCALE_SSHORTDATE,orig_date_format,128);
+ SetLocaleInfoA(lcid,LOCALE_SSHORTDATE,"M/d/yyyy");
VariantInit(&left);
VariantInit(&right);
@@ -5697,7 +5697,7 @@ static void test_VarCat(void)
"VarCat: EMPTY concat with EMPTY did not return empty VT_BSTR\n");
/* Restore original date format settings */
- SetLocaleInfo(lcid,LOCALE_SSHORTDATE,orig_date_format);
+ SetLocaleInfoA(lcid,LOCALE_SSHORTDATE,orig_date_format);
VariantClear(&left);
VariantClear(&right);
--
1.8.1.2
More information about the wine-patches
mailing list