cmd/tests: Compile with -D__WINESRC__.

This commit is contained in:
Michael Stefaniuc 2013-10-15 22:01:13 +02:00 committed by Alexandre Julliard
parent b70a5d52f1
commit 7641cef0bd
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,4 @@
TESTDLL = cmd.exe
EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
C_SRCS = \
batch.c

View File

@ -139,9 +139,9 @@ static DWORD map_file(const char *file_name, const char **ret)
size = GetFileSize(file, NULL);
map = CreateFileMapping(file, NULL, PAGE_READONLY, 0, 0, NULL);
map = CreateFileMappingA(file, NULL, PAGE_READONLY, 0, 0, NULL);
CloseHandle(file);
ok(map != NULL, "CreateFileMapping(%s) failed: %u\n", file_name, GetLastError());
ok(map != NULL, "CreateFileMappingA(%s) failed: %u\n", file_name, GetLastError());
if(!map)
return 0;
@ -408,7 +408,7 @@ static DWORD load_resource(const char *name, const char *type, const char **ret)
return size;
}
static BOOL WINAPI test_enum_proc(HMODULE module, LPCTSTR type, LPSTR name, LONG_PTR param)
static BOOL WINAPI test_enum_proc(HMODULE module, LPCSTR type, LPSTR name, LONG_PTR param)
{
const char *cmd_data, *out_data;
DWORD cmd_size, out_size;