Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
aa12152e
Commit
aa12152e
authored
Apr 09, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Avoid using sizeof in traces.
parent
d770f843
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
misc.c
dlls/setupapi/tests/misc.c
+8
-8
No files found.
dlls/setupapi/tests/misc.c
View file @
aa12152e
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment