setupapi/tests: Fix a test failure on latest Windows 10.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ec94d0d58d
commit
bcab6625ab
|
@ -59,7 +59,8 @@ static const char tmpfilename[] = ".\\tmp.inf";
|
||||||
"aaaaaaaaaaaaaaaa" A256
|
"aaaaaaaaaaaaaaaa" A256
|
||||||
#define A1200 A400 A400 A400
|
#define A1200 A400 A400 A400
|
||||||
#define A511 A255 A256
|
#define A511 A255 A256
|
||||||
#define A4097 "a" A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256
|
#define A4096 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256 A256
|
||||||
|
#define A4097 "a" A4096
|
||||||
|
|
||||||
#define STD_HEADER "[Version]\r\nSignature=\"$CHICAGO$\"\r\n"
|
#define STD_HEADER "[Version]\r\nSignature=\"$CHICAGO$\"\r\n"
|
||||||
|
|
||||||
|
@ -452,6 +453,11 @@ static void test_key_names(void)
|
||||||
!strcmp( field, A1200), /* Vista, W2K8 */
|
!strcmp( field, A1200), /* Vista, W2K8 */
|
||||||
"line %u: bad field %s/%s\n",
|
"line %u: bad field %s/%s\n",
|
||||||
i, field, key_names[i].fields[index] );
|
i, field, key_names[i].fields[index] );
|
||||||
|
else if (i == 52)
|
||||||
|
ok( !strcmp( field, key_names[i].fields[index] ) ||
|
||||||
|
!strcmp( field, A4096), /* Win10 >= 1709 */
|
||||||
|
"line %u: bad field %s/%s\n",
|
||||||
|
i, field, key_names[i].fields[index] );
|
||||||
else /* don't compare drive letter of paths */
|
else /* don't compare drive letter of paths */
|
||||||
if (field[0] && field[1] == ':' && field[2] == '\\')
|
if (field[0] && field[1] == ':' && field[2] == '\\')
|
||||||
ok( !strcmp( field + 1, key_names[i].fields[index] + 1 ),
|
ok( !strcmp( field + 1, key_names[i].fields[index] + 1 ),
|
||||||
|
|
Loading…
Reference in New Issue