Lines Matching refs:buf
39 LPBYTE buf; in test_encodeSPCFinancialCriteria() local
48 &criteria, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCFinancialCriteria()
53 ok(!memcmp(buf, falseCriteria, size), "Unexpected value\n"); in test_encodeSPCFinancialCriteria()
54 LocalFree(buf); in test_encodeSPCFinancialCriteria()
58 &criteria, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCFinancialCriteria()
63 ok(!memcmp(buf, trueCriteria, size), "Unexpected value\n"); in test_encodeSPCFinancialCriteria()
64 LocalFree(buf); in test_encodeSPCFinancialCriteria()
121 LPBYTE buf; in test_encodeSPCLink() local
132 CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCLink()
137 CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCLink()
142 ok(!memcmp(buf, emptyURLSPCLink, size), "Unexpected value\n"); in test_encodeSPCLink()
143 LocalFree(buf); in test_encodeSPCLink()
150 CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCLink()
161 CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCLink()
166 ok(!memcmp(buf, urlSPCLink, size), "Unexpected value\n"); in test_encodeSPCLink()
167 LocalFree(buf); in test_encodeSPCLink()
172 CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCLink()
177 ok(!memcmp(buf, fileSPCLink, size), "Unexpected value\n"); in test_encodeSPCLink()
178 LocalFree(buf); in test_encodeSPCLink()
183 CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCLink()
188 ok(!memcmp(buf, emptyMonikerSPCLink, size), "Unexpected value\n"); in test_encodeSPCLink()
189 LocalFree(buf); in test_encodeSPCLink()
195 CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCLink()
200 ok(!memcmp(buf, monikerSPCLink, size), "Unexpected value\n"); in test_encodeSPCLink()
201 LocalFree(buf); in test_encodeSPCLink()
212 LPBYTE buf = NULL; in test_decodeSPCLink() local
224 &buf, &size); in test_decodeSPCLink()
228 link = (SPC_LINK *)buf; in test_decodeSPCLink()
232 LocalFree(buf); in test_decodeSPCLink()
236 &buf, &size); in test_decodeSPCLink()
240 link = (SPC_LINK *)buf; in test_decodeSPCLink()
244 LocalFree(buf); in test_decodeSPCLink()
248 &buf, &size); in test_decodeSPCLink()
252 link = (SPC_LINK *)buf; in test_decodeSPCLink()
256 LocalFree(buf); in test_decodeSPCLink()
260 NULL, &buf, &size); in test_decodeSPCLink()
266 link = (SPC_LINK *)buf; in test_decodeSPCLink()
273 LocalFree(buf); in test_decodeSPCLink()
277 &buf, &size); in test_decodeSPCLink()
283 link = (SPC_LINK *)buf; in test_decodeSPCLink()
293 LocalFree(buf); in test_decodeSPCLink()
298 NULL, &buf, &size); in test_decodeSPCLink()
320 LPBYTE buf; in test_encodeSPCPEImage() local
331 &imageData, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCPEImage()
336 ok(!memcmp(buf, emptySequence, sizeof(emptySequence)), in test_encodeSPCPEImage()
338 LocalFree(buf); in test_encodeSPCPEImage()
344 &imageData, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCPEImage()
351 &imageData, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCPEImage()
356 ok(!memcmp(buf, emptySequence, sizeof(emptySequence)), in test_encodeSPCPEImage()
358 LocalFree(buf); in test_encodeSPCPEImage()
365 &imageData, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCPEImage()
375 ok(!memcmp(buf, onlyFlagsPEImage, sizeof(onlyFlagsPEImage)), in test_encodeSPCPEImage()
377 LocalFree(buf); in test_encodeSPCPEImage()
384 &imageData, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCPEImage()
389 ok(!memcmp(buf, onlyEmptyFilePEImage, sizeof(onlyEmptyFilePEImage)), in test_encodeSPCPEImage()
391 LocalFree(buf); in test_encodeSPCPEImage()
397 &imageData, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCPEImage()
403 ok(!memcmp(buf, flagsAndEmptyFilePEImage, in test_encodeSPCPEImage()
405 LocalFree(buf); in test_encodeSPCPEImage()
410 &imageData, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSPCPEImage()
415 ok(!memcmp(buf, flagsAndFilePEImage, sizeof(flagsAndFilePEImage)), in test_encodeSPCPEImage()
417 LocalFree(buf); in test_encodeSPCPEImage()
425 LPBYTE buf = NULL; in test_decodeSPCPEImage() local
437 CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); in test_decodeSPCPEImage()
441 imageData = (SPC_PE_IMAGE_DATA *)buf; in test_decodeSPCPEImage()
445 LocalFree(buf); in test_decodeSPCPEImage()
449 CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); in test_decodeSPCPEImage()
453 imageData = (SPC_PE_IMAGE_DATA *)buf; in test_decodeSPCPEImage()
460 LocalFree(buf); in test_decodeSPCPEImage()
464 CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); in test_decodeSPCPEImage()
468 imageData = (SPC_PE_IMAGE_DATA *)buf; in test_decodeSPCPEImage()
480 LocalFree(buf); in test_decodeSPCPEImage()
484 CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); in test_decodeSPCPEImage()
488 imageData = (SPC_PE_IMAGE_DATA *)buf; in test_decodeSPCPEImage()
503 LocalFree(buf); in test_decodeSPCPEImage()
507 CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); in test_decodeSPCPEImage()
511 imageData = (SPC_PE_IMAGE_DATA *)buf; in test_decodeSPCPEImage()
526 LocalFree(buf); in test_decodeSPCPEImage()
551 LPBYTE buf; in test_encodeCatMemberInfo() local
562 &info, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeCatMemberInfo()
567 ok(!memcmp(buf, emptyCatMemberInfo, sizeof(emptyCatMemberInfo)), in test_encodeCatMemberInfo()
569 LocalFree(buf); in test_encodeCatMemberInfo()
573 &info, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeCatMemberInfo()
579 ok(!memcmp(buf, catMemberInfoWithSillyGuid, in test_encodeCatMemberInfo()
581 LocalFree(buf); in test_encodeCatMemberInfo()
585 &info, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeCatMemberInfo()
591 ok(!memcmp(buf, catMemberInfoWithGuid, sizeof(catMemberInfoWithGuid)), in test_encodeCatMemberInfo()
593 LocalFree(buf); in test_encodeCatMemberInfo()
600 LPBYTE buf; in test_decodeCatMemberInfo() local
612 CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); in test_decodeCatMemberInfo()
616 info = (CAT_MEMBERINFO *)buf; in test_decodeCatMemberInfo()
621 LocalFree(buf); in test_decodeCatMemberInfo()
625 CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); in test_decodeCatMemberInfo()
629 info = (CAT_MEMBERINFO *)buf; in test_decodeCatMemberInfo()
634 LocalFree(buf); in test_decodeCatMemberInfo()
638 CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); in test_decodeCatMemberInfo()
642 info = (CAT_MEMBERINFO *)buf; in test_decodeCatMemberInfo()
647 LocalFree(buf); in test_decodeCatMemberInfo()
666 LPBYTE buf; in test_encodeCatNameValue() local
672 &value, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeCatNameValue()
677 ok(!memcmp(buf, emptyCatNameValue, sizeof(emptyCatNameValue)), in test_encodeCatNameValue()
679 LocalFree(buf); in test_encodeCatNameValue()
683 &value, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeCatNameValue()
688 ok(!memcmp(buf, catNameValueWithTag, sizeof(catNameValueWithTag)), in test_encodeCatNameValue()
690 LocalFree(buf); in test_encodeCatNameValue()
695 &value, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeCatNameValue()
700 ok(!memcmp(buf, catNameValueWithFlags, sizeof(catNameValueWithFlags)), in test_encodeCatNameValue()
702 LocalFree(buf); in test_encodeCatNameValue()
708 &value, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeCatNameValue()
713 ok(!memcmp(buf, catNameValueWithValue, sizeof(catNameValueWithValue)), in test_encodeCatNameValue()
715 LocalFree(buf); in test_encodeCatNameValue()
722 LPBYTE buf; in test_decodeCatNameValue() local
726 buf = NULL; in test_decodeCatNameValue()
729 CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); in test_decodeCatNameValue()
733 value = (CAT_NAMEVALUE *)buf; in test_decodeCatNameValue()
739 LocalFree(buf); in test_decodeCatNameValue()
741 buf = NULL; in test_decodeCatNameValue()
744 CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); in test_decodeCatNameValue()
748 value = (CAT_NAMEVALUE *)buf; in test_decodeCatNameValue()
755 LocalFree(buf); in test_decodeCatNameValue()
757 buf = NULL; in test_decodeCatNameValue()
760 CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); in test_decodeCatNameValue()
764 value = (CAT_NAMEVALUE *)buf; in test_decodeCatNameValue()
770 LocalFree(buf); in test_decodeCatNameValue()
772 buf = NULL; in test_decodeCatNameValue()
775 CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size); in test_decodeCatNameValue()
779 value = (CAT_NAMEVALUE *)buf; in test_decodeCatNameValue()
787 LocalFree(buf); in test_decodeCatNameValue()
807 LPBYTE buf; in test_encodeSpOpusInfo() local
814 &info, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSpOpusInfo()
819 ok(!memcmp(buf, emptySequence, size), "unexpected value\n"); in test_encodeSpOpusInfo()
820 LocalFree(buf); in test_encodeSpOpusInfo()
824 &info, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSpOpusInfo()
830 ok(!memcmp(buf, spOpusInfoWithProgramName, size), in test_encodeSpOpusInfo()
832 LocalFree(buf); in test_encodeSpOpusInfo()
839 &info, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSpOpusInfo()
845 &info, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSpOpusInfo()
851 ok(!memcmp(buf, spOpusInfoWithMoreInfo, size), in test_encodeSpOpusInfo()
853 LocalFree(buf); in test_encodeSpOpusInfo()
858 &info, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size); in test_encodeSpOpusInfo()
864 ok(!memcmp(buf, spOpusInfoWithPublisherInfo, size), in test_encodeSpOpusInfo()
866 LocalFree(buf); in test_encodeSpOpusInfo()