From 71d1df73b5e87bc6490ac4798ad8816ec824be45 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 14 Oct 2013 16:05:34 +0200 Subject: [PATCH] jscript: Compile tests with -D__WINESRC__. --- dlls/jscript/tests/Makefile.in | 1 - dlls/jscript/tests/activex.c | 2 +- dlls/jscript/tests/run.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/jscript/tests/Makefile.in b/dlls/jscript/tests/Makefile.in index 65fc9851941..a3ad0ea6be8 100644 --- a/dlls/jscript/tests/Makefile.in +++ b/dlls/jscript/tests/Makefile.in @@ -1,6 +1,5 @@ TESTDLL = jscript.dll IMPORTS = oleaut32 ole32 advapi32 -EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS C_SRCS = \ activex.c \ diff --git a/dlls/jscript/tests/activex.c b/dlls/jscript/tests/activex.c index a04d27c0a23..b4a8bdcd053 100644 --- a/dlls/jscript/tests/activex.c +++ b/dlls/jscript/tests/activex.c @@ -1088,7 +1088,7 @@ static BOOL init_key(const char *key_name, const char *def_value, BOOL init) DWORD res; if(!init) { - RegDeleteKey(HKEY_CLASSES_ROOT, key_name); + RegDeleteKeyA(HKEY_CLASSES_ROOT, key_name); return TRUE; } diff --git a/dlls/jscript/tests/run.c b/dlls/jscript/tests/run.c index 82d93109df4..0db3660f0b5 100644 --- a/dlls/jscript/tests/run.c +++ b/dlls/jscript/tests/run.c @@ -1739,7 +1739,7 @@ static BSTR get_script_from_file(const char *filename) size = GetFileSize(file, NULL); - map = CreateFileMapping(file, NULL, PAGE_READONLY, 0, 0, NULL); + map = CreateFileMappingW(file, NULL, PAGE_READONLY, 0, 0, NULL); CloseHandle(file); if(map == INVALID_HANDLE_VALUE) { trace("Could not create file mapping: %u\n", GetLastError());