Lines Matching refs:buf

260     BYTE buf[100];  in test_res_url()  local
271 hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &size); in test_res_url()
284 WCHAR buf[MAX_PATH]; in res_sec_url_cmp() local
295 len = SearchPathW(NULL, file, NULL, sizeof(buf)/sizeof(WCHAR), buf, NULL); in res_sec_url_cmp()
306 … ok(!lstrcmpW(url + sizeof(fileW)/sizeof(WCHAR), buf), "wrong file part %s\n", wine_dbgstr_w(url)); in res_sec_url_cmp()
341 WCHAR buf[128]; in test_res_protocol() local
347 hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, i, 0, buf, in test_res_protocol()
348 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_res_protocol()
354 hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_SECURITY_URL, 0, buf, in test_res_protocol()
355 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_res_protocol()
357 res_sec_url_cmp(buf, size, mshtml_dllW); in test_res_protocol()
358 ok(size == lstrlenW(buf)+1, "size = %d\n", size); in test_res_protocol()
361 hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_SECURITY_URL, 0, buf, in test_res_protocol()
364 res_sec_url_cmp(buf, size, mshtml_dllW); in test_res_protocol()
368 hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_SECURITY_URL, 0, buf, in test_res_protocol()
373 hres = IInternetProtocolInfo_ParseUrl(protocol_info, wrong_url1, PARSE_SECURITY_URL, 0, buf, in test_res_protocol()
374 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_res_protocol()
378 hres = IInternetProtocolInfo_ParseUrl(protocol_info, wrong_url5, PARSE_SECURITY_URL, 0, buf, in test_res_protocol()
379 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_res_protocol()
382 hres = IInternetProtocolInfo_ParseUrl(protocol_info, wrong_url6, PARSE_SECURITY_URL, 0, buf, in test_res_protocol()
383 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_res_protocol()
387 buf[0] = '?'; in test_res_protocol()
388 hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_DOMAIN, 0, buf, in test_res_protocol()
389 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_res_protocol()
391 ok(buf[0] == '?', "buf changed\n"); in test_res_protocol()
393 size == sizeof(buf)/sizeof(buf[0]), /* IE8 */ in test_res_protocol()
397 hres = IInternetProtocolInfo_ParseUrl(protocol_info, wrong_url1, PARSE_DOMAIN, 0, buf, in test_res_protocol()
398 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_res_protocol()
400 ok(buf[0] == '?', "buf changed\n"); in test_res_protocol()
402 size == sizeof(buf)/sizeof(buf[0]), /* IE8 */ in test_res_protocol()
409 buf[0] = '?'; in test_res_protocol()
410 hres = IInternetProtocolInfo_ParseUrl(protocol_info, NULL, PARSE_DOMAIN, 0, buf, in test_res_protocol()
411 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_res_protocol()
413 ok(buf[0] == '?', "buf changed\n"); in test_res_protocol()
416 buf[0] = '?'; in test_res_protocol()
417 hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_DOMAIN, 0, buf, in test_res_protocol()
418 sizeof(buf)/sizeof(buf[0]), NULL, 0); in test_res_protocol()
420 ok(buf[0] == '?', "buf changed\n"); in test_res_protocol()
422 buf[0] = '?'; in test_res_protocol()
423 hres = IInternetProtocolInfo_ParseUrl(protocol_info, NULL, PARSE_DOMAIN, 0, buf, in test_res_protocol()
424 sizeof(buf)/sizeof(buf[0]), NULL, 0); in test_res_protocol()
426 ok(buf[0] == '?', "buf changed\n"); in test_res_protocol()
429 buf[0] = '?'; in test_res_protocol()
430 hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_UNESCAPE+1, 0, buf, in test_res_protocol()
431 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_res_protocol()
434 ok(buf[0] == '?', "buf changed\n"); in test_res_protocol()
438 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); in test_res_protocol()
444 URL_FILE_USE_PATHURL, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); in test_res_protocol()
465 buf, sizeof(buf), &size, 0); in test_res_protocol()
471 memset(buf, '?', sizeof(buf)); in test_res_protocol()
473 buf, sizeof(buf), &size, 0); in test_res_protocol()
476 ok(!*(DWORD*)buf, "buf=%d\n", *(DWORD*)buf); in test_res_protocol()
478 memset(buf, '?', sizeof(buf)); in test_res_protocol()
480 buf, sizeof(buf), NULL, 0); in test_res_protocol()
482 ok(!*(DWORD*)buf, "buf=%d\n", *(DWORD*)buf); in test_res_protocol()
485 buf, 3, &size, 0); in test_res_protocol()
489 memset(buf, '?', sizeof(buf)); in test_res_protocol()
491 buf, sizeof(buf), &size, 0); in test_res_protocol()
494 ok(!*(DWORD*)buf, "buf=%d\n", *(DWORD*)buf); in test_res_protocol()
497 NULL, sizeof(buf), &size, 0); in test_res_protocol()
501 NULL, sizeof(buf), &size, 0); in test_res_protocol()
512 BYTE buf[512]; in test_res_protocol() local
531 hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); in test_res_protocol()
536 hres = IInternetProtocol_Read(protocol, buf, 2, &cb); in test_res_protocol()
539 hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); in test_res_protocol()
541 hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); in test_res_protocol()
548 hres = IInternetProtocol_Read(protocol, buf, 2, &cb); in test_res_protocol()
554 hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); in test_res_protocol()
562 hres = IInternetProtocol_Read(protocol, buf, 2, &cb); in test_res_protocol()
566 hres = IInternetProtocol_Read(protocol, buf, 2, &cb); in test_res_protocol()
570 hres = IInternetProtocol_Read(protocol, buf, 2, &cb); in test_res_protocol()
577 hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); in test_res_protocol()
580 hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); in test_res_protocol()
612 BYTE buf[512]; in do_test_about_protocol() local
634 hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); in do_test_about_protocol()
637 ok(!memcmp(buf, blank_html, cb), "Readed wrong data\n"); in do_test_about_protocol()
644 hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); in do_test_about_protocol()
647 ok(!memcmp(buf, test_html, cb), "Readed wrong data\n"); in do_test_about_protocol()
654 hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); in do_test_about_protocol()
657 ok(!memcmp(buf, blank_html, cb), "Readed wrong data\n"); in do_test_about_protocol()
679 WCHAR buf[128]; in test_about_protocol() local
685 hres = IInternetProtocolInfo_ParseUrl(protocol_info, about_blank_url, i, 0, buf, in test_about_protocol()
686 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_about_protocol()
692 … hres = IInternetProtocolInfo_ParseUrl(protocol_info, about_blank_url, PARSE_SECURITY_URL, 0, buf, in test_about_protocol()
693 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_about_protocol()
695 ok(!lstrcmpW(about_blank_url, buf), "buf != blank_url\n"); in test_about_protocol()
698 … hres = IInternetProtocolInfo_ParseUrl(protocol_info, about_blank_url, PARSE_SECURITY_URL, 0, buf, in test_about_protocol()
703 … hres = IInternetProtocolInfo_ParseUrl(protocol_info, about_test_url, PARSE_SECURITY_URL, 0, buf, in test_about_protocol()
704 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_about_protocol()
706 ok(!lstrcmpW(about_test_url, buf), "buf != test_url\n"); in test_about_protocol()
710 buf[0] = '?'; in test_about_protocol()
711 hres = IInternetProtocolInfo_ParseUrl(protocol_info, about_blank_url, PARSE_DOMAIN, 0, buf, in test_about_protocol()
712 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_about_protocol()
714 ok(buf[0] == '?', "buf changed\n"); in test_about_protocol()
716 size == sizeof(buf)/sizeof(buf[0]), /* IE8 */ in test_about_protocol()
723 buf[0] = '?'; in test_about_protocol()
724 hres = IInternetProtocolInfo_ParseUrl(protocol_info, NULL, PARSE_DOMAIN, 0, buf, in test_about_protocol()
725 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_about_protocol()
727 ok(buf[0] == '?', "buf changed\n"); in test_about_protocol()
730 buf[0] = '?'; in test_about_protocol()
731 hres = IInternetProtocolInfo_ParseUrl(protocol_info, about_blank_url, PARSE_DOMAIN, 0, buf, in test_about_protocol()
732 sizeof(buf)/sizeof(buf[0]), NULL, 0); in test_about_protocol()
734 ok(buf[0] == '?', "buf changed\n"); in test_about_protocol()
736 buf[0] = '?'; in test_about_protocol()
737 hres = IInternetProtocolInfo_ParseUrl(protocol_info, NULL, PARSE_DOMAIN, 0, buf, in test_about_protocol()
738 sizeof(buf)/sizeof(buf[0]), NULL, 0); in test_about_protocol()
740 ok(buf[0] == '?', "buf changed\n"); in test_about_protocol()
743 … hres = IInternetProtocolInfo_ParseUrl(protocol_info, about_blank_url, PARSE_UNESCAPE+1, 0, buf, in test_about_protocol()
744 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_about_protocol()
750 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); in test_about_protocol()
756 URL_FILE_USE_PATHURL, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); in test_about_protocol()
762 URL_FILE_USE_PATHURL, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); in test_about_protocol()
786 buf, sizeof(buf), &size, 0); in test_about_protocol()
792 buf, sizeof(buf), &size, 0); in test_about_protocol()
798 memset(buf, '?', sizeof(buf)); in test_about_protocol()
800 buf, sizeof(buf), &size, 0); in test_about_protocol()
803 ok(!*(DWORD*)buf, "buf=%d\n", *(DWORD*)buf); in test_about_protocol()
805 memset(buf, '?', sizeof(buf)); in test_about_protocol()
807 buf, sizeof(buf), NULL, 0); in test_about_protocol()
809 ok(!*(DWORD*)buf, "buf=%d\n", *(DWORD*)buf); in test_about_protocol()
812 buf, 3, &size, 0); in test_about_protocol()
816 NULL, sizeof(buf), &size, 0); in test_about_protocol()
820 NULL, sizeof(buf), &size, 0); in test_about_protocol()
854 WCHAR buf[128]; in test_javascript_protocol() local
860 hres = IInternetProtocolInfo_ParseUrl(protocol_info, javascript_test_url, i, 0, buf, in test_javascript_protocol()
861 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_javascript_protocol()
867 …hres = IInternetProtocolInfo_ParseUrl(protocol_info, javascript_test_url, PARSE_UNESCAPE+1, 0, buf, in test_javascript_protocol()
868 sizeof(buf)/sizeof(buf[0]), &size, 0); in test_javascript_protocol()
874 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); in test_javascript_protocol()
888 buf, sizeof(buf), &size, 0); in test_javascript_protocol()
895 memset(buf, '?', sizeof(buf)); in test_javascript_protocol()
897 buf, sizeof(buf), &size, 0); in test_javascript_protocol()
900 ok(!*(DWORD*)buf, "buf=%d\n", *(DWORD*)buf); in test_javascript_protocol()
902 memset(buf, '?', sizeof(buf)); in test_javascript_protocol()
904 buf, sizeof(buf), NULL, 0); in test_javascript_protocol()
906 ok(!*(DWORD*)buf, "buf=%d\n", *(DWORD*)buf); in test_javascript_protocol()
909 buf, 3, &size, 0); in test_javascript_protocol()
913 NULL, sizeof(buf), &size, 0); in test_javascript_protocol()
917 NULL, sizeof(buf), &size, 0); in test_javascript_protocol()