avicap32: Enable compilation with long types.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-02-07 23:11:15 +01:00 committed by Alexandre Julliard
parent 8d89a36d9b
commit c55079fefb
2 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,3 @@
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = avicap32.dll
UNIXLIB = avicap32.so
IMPORTLIB = avicap32

View File

@ -59,13 +59,13 @@ static void register_class(void)
};
if (!RegisterClassExW(&class) && GetLastError() != ERROR_CLASS_ALREADY_EXISTS)
ERR("Failed to register class, error %u.\n", GetLastError());
ERR("Failed to register class, error %lu.\n", GetLastError());
}
static void unregister_class(void)
{
if (!UnregisterClassW(class_name, avicap_instance) && GetLastError() != ERROR_CLASS_DOES_NOT_EXIST)
ERR("Failed to unregister class, error %u.\n", GetLastError());
ERR("Failed to unregister class, error %lu.\n", GetLastError());
}
/***********************************************************************
@ -74,7 +74,7 @@ static void unregister_class(void)
HWND VFWAPI capCreateCaptureWindowW(const WCHAR *window_name, DWORD style,
int x, int y, int width, int height, HWND parent, int id)
{
TRACE("window_name %s, style %#x, x %d, y %d, width %d, height %d, parent %p, id %#x.\n",
TRACE("window_name %s, style %#lx, x %d, y %d, width %d, height %d, parent %p, id %#x.\n",
debugstr_w(window_name), style, x, y, width, height, parent, id);
return CreateWindowW(class_name, window_name, style, x, y, width, height, parent, NULL, avicap_instance, NULL);