[PATCH] urlmon/tests: Allow x64 to be last in the user agent.

Francois Gouget fgouget at codeweavers.com
Fri Apr 30 02:11:16 CDT 2021


Windows would normally have .Net strings that follow but Wine does not
in 64-bit mode. Still the formatting makes sense so allow it.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
This fixes a test failure in Wine in wow64 mode.
https://test.winehq.org/data/patterns.html#urlmon:misc
https://testbot.winehq.org/JobDetails.pl?Key=89589

An alternative would be to turn it into a todo if i == 1.
---
 dlls/urlmon/tests/misc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/urlmon/tests/misc.c b/dlls/urlmon/tests/misc.c
index 2b3df65d5fc..5b179b55770 100644
--- a/dlls/urlmon/tests/misc.c
+++ b/dlls/urlmon/tests/misc.c
@@ -1544,7 +1544,9 @@ static void test_user_agent(void)
         }else if(sizeof(void*) == 8) {
             p += check_prefix(p, "Win64; ");
 #ifdef __x86_64__
-            p += check_prefix(p, "x64; ");
+            p += check_prefix(p, "x64");
+            if (*p == ';')
+                p += check_prefix(p, "; ");
 #endif
         }
         if(i != 1) {
-- 
2.20.1



More information about the wine-devel mailing list