mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 18:07:21 +00:00
vbscript: Compile tests with -D__WINESRC__.
This commit is contained in:
parent
71d1df73b5
commit
b1cf39d081
|
@ -1,6 +1,5 @@
|
|||
TESTDLL = vbscript.dll
|
||||
IMPORTS = oleaut32 ole32 advapi32
|
||||
EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
|
||||
|
||||
C_SRCS = \
|
||||
createobj.c \
|
||||
|
|
|
@ -1042,7 +1042,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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1726,7 +1726,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());
|
||||
|
|
Loading…
Reference in a new issue