jscript: Compile tests with -D__WINESRC__.

This commit is contained in:
Jacek Caban 2013-10-14 16:05:34 +02:00 committed by Alexandre Julliard
parent ceeff119a2
commit 71d1df73b5
3 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,5 @@
TESTDLL = jscript.dll TESTDLL = jscript.dll
IMPORTS = oleaut32 ole32 advapi32 IMPORTS = oleaut32 ole32 advapi32
EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
C_SRCS = \ C_SRCS = \
activex.c \ activex.c \

View File

@ -1088,7 +1088,7 @@ static BOOL init_key(const char *key_name, const char *def_value, BOOL init)
DWORD res; DWORD res;
if(!init) { if(!init) {
RegDeleteKey(HKEY_CLASSES_ROOT, key_name); RegDeleteKeyA(HKEY_CLASSES_ROOT, key_name);
return TRUE; return TRUE;
} }

View File

@ -1739,7 +1739,7 @@ static BSTR get_script_from_file(const char *filename)
size = GetFileSize(file, NULL); size = GetFileSize(file, NULL);
map = CreateFileMapping(file, NULL, PAGE_READONLY, 0, 0, NULL); map = CreateFileMappingW(file, NULL, PAGE_READONLY, 0, 0, NULL);
CloseHandle(file); CloseHandle(file);
if(map == INVALID_HANDLE_VALUE) { if(map == INVALID_HANDLE_VALUE) {
trace("Could not create file mapping: %u\n", GetLastError()); trace("Could not create file mapping: %u\n", GetLastError());