Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
211d538d
Commit
211d538d
authored
Jul 12, 2023
by
Jeff Smith
Committed by
Alexandre Julliard
Jul 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Use consistent no-alternate value for image properties.
parent
1ed5dd7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
image.c
dlls/gdiplus/tests/image.c
+13
-13
No files found.
dlls/gdiplus/tests/image.c
View file @
211d538d
...
@@ -3662,21 +3662,21 @@ static void test_image_properties(void)
...
@@ -3662,21 +3662,21 @@ static void test_image_properties(void)
UINT
image_size
;
UINT
image_size
;
ImageType
image_type
;
ImageType
image_type
;
UINT
prop_count
;
UINT
prop_count
;
UINT
prop_count2
;
/* if win7
behaves differently
*/
UINT
prop_count2
;
/* if win7
+ behaves differently, else ~0
*/
/* 1st property attributes */
/* 1st property attributes */
UINT
prop_size
;
UINT
prop_size
;
UINT
prop_size2
;
/* if win7
behaves differently
*/
UINT
prop_size2
;
/* if win7
+ behaves differently, else ~0
*/
UINT
prop_id
;
UINT
prop_id
;
UINT
prop_id2
;
/* if win7
behaves differently
*/
UINT
prop_id2
;
/* if win7
+ behaves differently, else ~0
*/
INT
palette_size
;
INT
palette_size
;
}
}
td
[]
=
td
[]
=
{
{
{
pngimage
,
sizeof
(
pngimage
),
ImageTypeBitmap
,
4
,
~
0
,
1
,
20
,
0x5110
,
0x132
,
12
},
{
pngimage
,
sizeof
(
pngimage
),
ImageTypeBitmap
,
4
,
~
0
,
1
,
20
,
0x5110
,
0x132
,
12
},
{
jpgimage
,
sizeof
(
jpgimage
),
ImageTypeBitmap
,
2
,
~
0
,
128
,
0
,
0x5090
,
0x5091
,
12
},
{
jpgimage
,
sizeof
(
jpgimage
),
ImageTypeBitmap
,
2
,
~
0
,
128
,
~
0
,
0x5090
,
0x5091
,
12
},
{
tiffimage
,
sizeof
(
tiffimage
),
ImageTypeBitmap
,
16
,
0
,
4
,
0
,
0xfe
,
0
,
12
},
{
tiffimage
,
sizeof
(
tiffimage
),
ImageTypeBitmap
,
16
,
~
0
,
4
,
~
0
,
0xfe
,
~
0
,
12
},
{
bmpimage
,
sizeof
(
bmpimage
),
ImageTypeBitmap
,
0
,
0
,
0
,
0
,
0
,
0
,
16
},
{
bmpimage
,
sizeof
(
bmpimage
),
ImageTypeBitmap
,
0
,
~
0
,
0
,
~
0
,
0
,
~
0
,
16
},
{
wmfimage
,
sizeof
(
wmfimage
),
ImageTypeMetafile
,
0
,
0
,
0
,
0
,
0
,
0
,
-
GenericError
}
{
wmfimage
,
sizeof
(
wmfimage
),
ImageTypeMetafile
,
0
,
~
0
,
0
,
~
0
,
0
,
~
0
,
-
GenericError
}
};
};
GpStatus
status
;
GpStatus
status
;
GpImage
*
image
;
GpImage
*
image
;
...
@@ -3722,7 +3722,7 @@ static void test_image_properties(void)
...
@@ -3722,7 +3722,7 @@ static void test_image_properties(void)
status
=
GdipGetPropertyCount
(
image
,
&
prop_count
);
status
=
GdipGetPropertyCount
(
image
,
&
prop_count
);
ok
(
status
==
Ok
,
"%u: GdipGetPropertyCount error %d
\n
"
,
i
,
status
);
ok
(
status
==
Ok
,
"%u: GdipGetPropertyCount error %d
\n
"
,
i
,
status
);
todo_wine_if
(
td
[
i
].
image_data
==
pngimage
||
td
[
i
].
image_data
==
jpgimage
)
todo_wine_if
(
td
[
i
].
image_data
==
pngimage
||
td
[
i
].
image_data
==
jpgimage
)
ok
(
td
[
i
].
prop_count
==
prop_count
||
td
[
i
].
prop_count2
==
prop_count
,
ok
(
td
[
i
].
prop_count
==
prop_count
||
(
td
[
i
].
prop_count2
!=
~
0
&&
td
[
i
].
prop_count2
==
prop_count
)
,
" %u: expected property count %u or %u, got %u
\n
"
,
" %u: expected property count %u or %u, got %u
\n
"
,
i
,
td
[
i
].
prop_count
,
td
[
i
].
prop_count2
,
prop_count
);
i
,
td
[
i
].
prop_count
,
td
[
i
].
prop_count2
,
prop_count
);
...
@@ -3747,7 +3747,7 @@ static void test_image_properties(void)
...
@@ -3747,7 +3747,7 @@ static void test_image_properties(void)
expect
(
PropertyNotFound
,
status
);
expect
(
PropertyNotFound
,
status
);
/* FIXME: remove once Wine is fixed */
/* FIXME: remove once Wine is fixed */
if
(
td
[
i
].
prop_count
!=
prop_count
)
if
(
!
(
td
[
i
].
prop_count
==
prop_count
||
(
td
[
i
].
prop_count2
!=
~
0
&&
td
[
i
].
prop_count2
==
prop_count
))
)
{
{
GdipDisposeImage
(
image
);
GdipDisposeImage
(
image
);
continue
;
continue
;
...
@@ -3781,7 +3781,7 @@ static void test_image_properties(void)
...
@@ -3781,7 +3781,7 @@ static void test_image_properties(void)
{
{
expect
(
Ok
,
status
);
expect
(
Ok
,
status
);
if
(
prop_count
!=
0
)
if
(
prop_count
!=
0
)
ok
(
td
[
i
].
prop_id
==
prop_id
[
0
]
||
td
[
i
].
prop_id2
==
prop_id
[
0
]
,
ok
(
td
[
i
].
prop_id
==
prop_id
[
0
]
||
(
td
[
i
].
prop_id2
!=
~
0
&&
td
[
i
].
prop_id2
==
prop_id
[
0
])
,
" %u: expected property id %#x or %#x, got %#lx
\n
"
,
" %u: expected property id %#x or %#x, got %#lx
\n
"
,
i
,
td
[
i
].
prop_id
,
td
[
i
].
prop_id2
,
prop_id
[
0
]);
i
,
td
[
i
].
prop_id
,
td
[
i
].
prop_id2
,
prop_id
[
0
]);
}
}
...
@@ -3799,9 +3799,9 @@ static void test_image_properties(void)
...
@@ -3799,9 +3799,9 @@ static void test_image_properties(void)
ok
(
prop_size
>
sizeof
(
PropertyItem
),
"%u: got too small prop_size %u
\n
"
,
ok
(
prop_size
>
sizeof
(
PropertyItem
),
"%u: got too small prop_size %u
\n
"
,
i
,
prop_size
);
i
,
prop_size
);
ok
(
td
[
i
].
prop_size
+
sizeof
(
PropertyItem
)
==
prop_size
||
ok
(
td
[
i
].
prop_size
+
sizeof
(
PropertyItem
)
==
prop_size
||
td
[
i
].
prop_size2
+
sizeof
(
PropertyItem
)
==
prop_size
,
(
td
[
i
].
prop_size2
!=
~
0
&&
td
[
i
].
prop_size2
+
sizeof
(
PropertyItem
)
==
prop_size
)
,
" %u: expected property size
%u or
%u, got %u
\n
"
,
" %u: expected property size
(%u or %u)+
%u, got %u
\n
"
,
i
,
td
[
i
].
prop_size
,
td
[
i
].
prop_size2
,
prop_size
);
i
,
td
[
i
].
prop_size
,
td
[
i
].
prop_size2
,
(
UINT
)
sizeof
(
PropertyItem
),
prop_size
);
status
=
GdipGetPropertyItem
(
image
,
prop_id
[
0
],
0
,
&
item
.
data
);
status
=
GdipGetPropertyItem
(
image
,
prop_id
[
0
],
0
,
&
item
.
data
);
ok
(
status
==
InvalidParameter
||
status
==
GenericError
/* Win7 */
,
ok
(
status
==
InvalidParameter
||
status
==
GenericError
/* Win7 */
,
...
...
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