Commit d34b3021 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winetest: Enable compilation with long types.

parent 69a9931a
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = winetest.exe
IMPORTS = uuid comctl32 version user32 gdi32 advapi32 wsock32 msvcrt
DELAYIMPORTS = ole32
......
......@@ -124,7 +124,7 @@ static char * get_file_version(char * file_name)
VS_FIXEDFILEINFO *pFixedVersionInfo;
UINT len;
if (VerQueryValueA(data, backslash, (LPVOID *)&pFixedVersionInfo, &len)) {
sprintf(version, "%d.%d.%d.%d",
sprintf(version, "%ld.%ld.%ld.%ld",
pFixedVersionInfo->dwFileVersionMS >> 16,
pFixedVersionInfo->dwFileVersionMS & 0xffff,
pFixedVersionInfo->dwFileVersionLS >> 16,
......@@ -132,14 +132,14 @@ static char * get_file_version(char * file_name)
} else
sprintf(version, "version not found");
} else
sprintf(version, "version error %u", GetLastError());
sprintf(version, "version error %lu", GetLastError());
heap_free(data);
} else
sprintf(version, "version error %u", ERROR_OUTOFMEMORY);
} else if (GetLastError() == ERROR_FILE_NOT_FOUND)
sprintf(version, "dll is missing");
else
sprintf(version, "version not present %u", GetLastError());
sprintf(version, "version not present %lu", GetLastError());
return version;
}
......
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