Updated mshtml-HTMLLocation_put_hash patchset

Warning fixes.
This commit is contained in:
Alistair Leslie-Hughes 2022-03-16 13:19:32 +11:00
parent d7aa469bc1
commit 8aeeecdfcb

View File

@ -51,7 +51,7 @@ index ff050863b6f..2c118d89d1d 100644
+
+ location = NULL;
+ hres = IHTMLDocument2_get_location(doc, &location);
+ ok(hres == S_OK, "get_location failed: %08x\n", hres);
+ ok(hres == S_OK, "get_location failed: %08lx\n", hres);
+ ok(location != NULL, "location == NULL\n");
+
+ SET_EXPECT(TranslateUrl);
@ -70,7 +70,7 @@ index ff050863b6f..2c118d89d1d 100644
+
+ str = SysAllocString(new_hash);
+ hres = IHTMLLocation_put_hash(location, str);
+ ok (hres == S_OK, "put_hash failed: %08x\n", hres);
+ ok (hres == S_OK, "put_hash failed: %08lx\n", hres);
+ SysFreeString(str);
+
+ CHECK_CALLED(TranslateUrl);
@ -82,7 +82,7 @@ index ff050863b6f..2c118d89d1d 100644
+
+ /* Check the result */
+ hres = IHTMLLocation_get_hash(location, &str);
+ ok(hres == S_OK, "get_hash failed: %08x\n", hres);
+ ok(hres == S_OK, "get_hash failed: %08lx\n", hres);
+ ok(!wcscmp(str, new_hash), "expected %s, got %s\n", debugstr_w(new_hash), debugstr_w(str));
+ SysFreeString(str);
+