Commit 7641cef0 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

cmd/tests: Compile with -D__WINESRC__.

parent b70a5d52
TESTDLL = cmd.exe TESTDLL = cmd.exe
EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
C_SRCS = \ C_SRCS = \
batch.c batch.c
......
...@@ -139,9 +139,9 @@ static DWORD map_file(const char *file_name, const char **ret) ...@@ -139,9 +139,9 @@ static DWORD map_file(const char *file_name, const char **ret)
size = GetFileSize(file, NULL); size = GetFileSize(file, NULL);
map = CreateFileMapping(file, NULL, PAGE_READONLY, 0, 0, NULL); map = CreateFileMappingA(file, NULL, PAGE_READONLY, 0, 0, NULL);
CloseHandle(file); 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) if(!map)
return 0; return 0;
...@@ -408,7 +408,7 @@ static DWORD load_resource(const char *name, const char *type, const char **ret) ...@@ -408,7 +408,7 @@ static DWORD load_resource(const char *name, const char *type, const char **ret)
return size; 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; const char *cmd_data, *out_data;
DWORD cmd_size, out_size; DWORD cmd_size, out_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment