Commit aa12152e authored by Alexandre Julliard's avatar Alexandre Julliard

setupapi: Avoid using sizeof in traces.

parent d770f843
...@@ -340,8 +340,8 @@ static void test_SetupGetFileCompressionInfoEx(void) ...@@ -340,8 +340,8 @@ static void test_SetupGetFileCompressionInfoEx(void)
ok(ret, "SetupGetFileCompressionInfoEx failed unexpectedly: %d\n", ret); ok(ret, "SetupGetFileCompressionInfoEx failed unexpectedly: %d\n", ret);
ok(!lstrcmpA(name, source), "got %s, expected %s\n", name, source); ok(!lstrcmpA(name, source), "got %s, expected %s\n", name, source);
ok(required_len == lstrlenA(source) + 1, "got %d, expected %d\n", required_len, lstrlenA(source) + 1); ok(required_len == lstrlenA(source) + 1, "got %d, expected %d\n", required_len, lstrlenA(source) + 1);
ok(source_size == sizeof(comp_lzx), "got %d, expected %d\n", source_size, sizeof(comp_lzx)); ok(source_size == sizeof(comp_lzx), "got %d\n", source_size);
ok(target_size == sizeof(uncompressed), "got %d, expected %d\n", target_size, sizeof(uncompressed)); ok(target_size == sizeof(uncompressed), "got %d\n", target_size);
ok(type == FILE_COMPRESSION_WINLZA, "got %d, expected FILE_COMPRESSION_WINLZA\n", type); ok(type == FILE_COMPRESSION_WINLZA, "got %d, expected FILE_COMPRESSION_WINLZA\n", type);
DeleteFileA(source); DeleteFileA(source);
...@@ -351,8 +351,8 @@ static void test_SetupGetFileCompressionInfoEx(void) ...@@ -351,8 +351,8 @@ static void test_SetupGetFileCompressionInfoEx(void)
ok(ret, "SetupGetFileCompressionInfoEx failed unexpectedly: %d\n", ret); ok(ret, "SetupGetFileCompressionInfoEx failed unexpectedly: %d\n", ret);
ok(!lstrcmpA(name, source), "got %s, expected %s\n", name, source); ok(!lstrcmpA(name, source), "got %s, expected %s\n", name, source);
ok(required_len == lstrlenA(source) + 1, "got %d, expected %d\n", required_len, lstrlenA(source) + 1); ok(required_len == lstrlenA(source) + 1, "got %d, expected %d\n", required_len, lstrlenA(source) + 1);
ok(source_size == sizeof(comp_zip), "got %d, expected %d\n", source_size, sizeof(comp_zip)); ok(source_size == sizeof(comp_zip), "got %d\n", source_size);
ok(target_size == sizeof(comp_zip), "got %d, expected %d\n", target_size, sizeof(comp_zip)); ok(target_size == sizeof(comp_zip), "got %d\n", target_size);
ok(type == FILE_COMPRESSION_NONE, "got %d, expected FILE_COMPRESSION_NONE\n", type); ok(type == FILE_COMPRESSION_NONE, "got %d, expected FILE_COMPRESSION_NONE\n", type);
DeleteFileA(source); DeleteFileA(source);
...@@ -362,8 +362,8 @@ static void test_SetupGetFileCompressionInfoEx(void) ...@@ -362,8 +362,8 @@ static void test_SetupGetFileCompressionInfoEx(void)
ok(ret, "SetupGetFileCompressionInfoEx failed unexpectedly: %d\n", ret); ok(ret, "SetupGetFileCompressionInfoEx failed unexpectedly: %d\n", ret);
ok(!lstrcmpA(name, source), "got %s, expected %s\n", name, source); ok(!lstrcmpA(name, source), "got %s, expected %s\n", name, source);
ok(required_len == lstrlenA(source) + 1, "got %d, expected %d\n", required_len, lstrlenA(source) + 1); ok(required_len == lstrlenA(source) + 1, "got %d, expected %d\n", required_len, lstrlenA(source) + 1);
ok(source_size == sizeof(comp_cab_lzx), "got %d, expected %d\n", source_size, sizeof(comp_cab_lzx)); ok(source_size == sizeof(comp_cab_lzx), "got %d\n", source_size);
ok(target_size == sizeof(uncompressed), "got %d, expected %d\n", target_size, sizeof(uncompressed)); ok(target_size == sizeof(uncompressed), "got %d\n", target_size);
ok(type == FILE_COMPRESSION_MSZIP, "got %d, expected FILE_COMPRESSION_MSZIP\n", type); ok(type == FILE_COMPRESSION_MSZIP, "got %d, expected FILE_COMPRESSION_MSZIP\n", type);
DeleteFileA(source); DeleteFileA(source);
...@@ -373,8 +373,8 @@ static void test_SetupGetFileCompressionInfoEx(void) ...@@ -373,8 +373,8 @@ static void test_SetupGetFileCompressionInfoEx(void)
ok(ret, "SetupGetFileCompressionInfoEx failed unexpectedly: %d\n", ret); ok(ret, "SetupGetFileCompressionInfoEx failed unexpectedly: %d\n", ret);
ok(!lstrcmpA(name, source), "got %s, expected %s\n", name, source); ok(!lstrcmpA(name, source), "got %s, expected %s\n", name, source);
ok(required_len == lstrlenA(source) + 1, "got %d, expected %d\n", required_len, lstrlenA(source) + 1); ok(required_len == lstrlenA(source) + 1, "got %d, expected %d\n", required_len, lstrlenA(source) + 1);
ok(source_size == sizeof(comp_cab_zip), "got %d, expected %d\n", source_size, sizeof(comp_cab_zip)); ok(source_size == sizeof(comp_cab_zip), "got %d\n", source_size);
ok(target_size == sizeof(uncompressed), "got %d, expected %d\n", target_size, sizeof(uncompressed)); ok(target_size == sizeof(uncompressed), "got %d\n", target_size);
ok(type == FILE_COMPRESSION_MSZIP, "got %d, expected FILE_COMPRESSION_MSZIP\n", type); ok(type == FILE_COMPRESSION_MSZIP, "got %d, expected FILE_COMPRESSION_MSZIP\n", type);
DeleteFileA(source); DeleteFileA(source);
} }
......
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