diff --git a/rostests/winetests/lz32/CMakeLists.txt b/rostests/winetests/lz32/CMakeLists.txt index 96148d3cf37..e1fe0e52769 100644 --- a/rostests/winetests/lz32/CMakeLists.txt +++ b/rostests/winetests/lz32/CMakeLists.txt @@ -1,8 +1,6 @@ add_definitions(-DUSE_WINE_TODOS) - add_executable(lz32_winetest lzexpand_main.c testlist.c) -target_link_libraries(lz32_winetest wine) set_module_type(lz32_winetest win32cui) -add_importlibs(lz32_winetest lz32 msvcrt kernel32 ntdll) +add_importlibs(lz32_winetest lz32 msvcrt kernel32) add_cd_file(TARGET lz32_winetest DESTINATION reactos/bin FOR all) diff --git a/rostests/winetests/lz32/lzexpand_main.c b/rostests/winetests/lz32/lzexpand_main.c index 41792d6321f..4980cf7adca 100644 --- a/rostests/winetests/lz32/lzexpand_main.c +++ b/rostests/winetests/lz32/lzexpand_main.c @@ -83,8 +83,8 @@ static void full_file_path_name_in_a_CWD(const char *src, char *dst, BOOL expect if(expect_short) { memcpy(shortname, dst, MAX_PATH); - retval = GetShortPathName(shortname, dst, MAX_PATH-1); - ok(retval > 0, "GetShortPathName returned %d for '%s', GLE=%d\n", + retval = GetShortPathNameA(shortname, dst, MAX_PATH-1); + ok(retval > 0, "GetShortPathNameA returned %d for '%s', GLE=%d\n", retval, dst, GetLastError()); } } diff --git a/rostests/winetests/lz32/testlist.c b/rostests/winetests/lz32/testlist.c index f0503e71de7..95c1a784c6c 100644 --- a/rostests/winetests/lz32/testlist.c +++ b/rostests/winetests/lz32/testlist.c @@ -1,10 +1,7 @@ /* Automatically generated file; DO NOT EDIT!! */ -#define WIN32_LEAN_AND_MEAN -#include - #define STANDALONE -#include "wine/test.h" +#include extern void func_lzexpand_main(void);