84 if (!wstr)
return FALSE;
157 "got exit code %d, expected 1\n",
r);
161 "got exit code %d, expected 1\n",
r);
180 "got exit code %d, expected 1\n",
r);
184 "got exit code %d, expected 1\n",
r);
188 "got exit code %d, expected 1\n",
r);
206 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n", &
r);
212 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
213 "\"Wine\"=dword:00000123\n\n", &
r);
218 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
219 "@=\"Test string\"\n\n", &
r);
224 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
225 "\"Test1\"=\"Value\"\n", &
r);
230 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
231 "\"Test2\"=\"Value\"\n", &
r);
233 "got exit code %d, expected 1\n",
r);
237 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
238 "\"Test3\"=\"Value\"\n", &
r);
240 "got exit code %d, expected 1\n",
r);
244 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
245 "\"Test4\"=\"Value\"\n", &
r);
250 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
251 "\"Test5\"=\"Value\"\n", &
r);
256 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
257 "\"Test6\"=\"Value\"\n", &
r);
262 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
263 "\"Test7\"=\"Value\"\n", &
r);
268 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
269 "\"Test8\"=\"Value\"\n", &
r);
274 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
275 "\"Test9\"=\"Value\"\n", &
r);
277 "got exit code %d, expected 1\n",
r);
281 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
282 "\"Test10\"=\"Value\"\n", &
r);
284 "got exit code %d, expected 1\n",
r);
288 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
289 "\"Test11\"=\"Value\"\n", &
r);
291 "got exit code %d, expected 1\n",
r);
295 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
296 "\"Test12\"=\"Value\"\n", &
r);
298 "got exit code %d, expected 1\n",
r);
302 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
303 "\"Test1\"=\"Value1\"\n", &
r);
308 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
309 "\"Test2\"=\"Value2\"\n\n", &
r);
314 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
315 "\"Test3\"=\"Value3\"\n\n", &
r);
321 "got exit code %d, expected 1\n",
r);
327 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
328 "\"Test4\"=\"Value4\"\n", &
r);
333 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
334 "\"Test5\"=\"Value5\"\n\n", &
r);
339 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
340 "\"Test6\"=\"Value6\"\n\n", &
r);
345 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
346 "\"Line1\"=\"Value1\"\n\n"
347 "\"Line2\"=\"Value2\"\n\n\n"
348 "\"Line3\"=\"Value3\"\n\n\n\n"
349 "\"Line4\"=\"Value4\"\n\n", &
r);
357 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
358 "\"Wine1\"=dword:00000782\n\n"
359 "\"Wine2\"=\"Test Value\"\n"
360 "\"Wine3\"=hex(7):4c,69,6e,65,20,\\\n"
361 " 63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n"
365 "\"Wine4\"=dword:12345678\n\n", &
r);
376 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
377 "\"Wine5\"=\"No newline\"", &
r);
381 "got exit code %d, expected 0\n",
err);
386 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
387 "\"Wine6\"=dword:00000050\n\n"
388 "\"Wine7\"=\"No newline\"", &
r);
394 "got exit code %d, expected 0\n",
err);
399 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
401 "\"Wine8\"=\"Line 1\"\n"
403 "\"Wine9\"=\"Line 2\"\n\n", &
r);
409 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
410 "\"Wine10\"=\"Value 1\"#comment\n"
411 "\"Wine11\"=\"Value 2\";comment\n"
412 "\"Wine12\"=dword:01020304 #comment\n"
413 "\"Wine13\"=dword:02040608 ;comment\n\n", &
r);
422 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
423 "\"Wine14\"=hex(7):4c,69,6e,65,20,\\\n"
425 " 63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n"
426 "\"Wine15\"=\"A valid line\"\n"
427 "\"Wine16\"=hex(7):4c,69,6e,65,20,\\\n"
429 " 63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n"
430 "\"Wine17\"=\"Another valid line\"\n\n", &
r);
438 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
439 "#\"Comment1\"=\"Value 1\"\n"
440 ";\"Comment2\"=\"Value 2\"\n"
441 " #\"Comment3\"=\"Value 3\"\n"
442 " ;\"Comment4\"=\"Value 4\"\n"
443 "\"Wine18\"=\"Value 6\"#\"Comment5\"=\"Value 5\"\n"
444 "\"Wine19\"=\"Value 7\";\"Comment6\"=\"Value 6\"\n\n", &
r);
456 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
457 "\"Wine20\"=#\"Value 8\"\n"
458 "\"Wine21\"=;\"Value 9\"\n"
459 "\"Wine22\"=\"#comment1\"\n"
460 "\"Wine23\"=\";comment2\"\n"
461 "\"Wine24\"=\"Value#comment3\"\n"
462 "\"Wine25\"=\"Value;comment4\"\n"
463 "\"Wine26\"=\"Value #comment5\"\n"
464 "\"Wine27\"=\"Value ;comment6\"\n"
465 "\"Wine28\"=#dword:00000001\n"
466 "\"Wine29\"=;dword:00000002\n"
467 "\"Wine30\"=dword:00000003#comment\n"
468 "\"Wine31\"=dword:00000004;comment\n\n", &
r);
485 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
486 "\"Multi-Line1\"=hex(7):4c,69,6e,65,20,\\\n"
487 " 63,6f,6e,\\;comment\n"
488 " 63,61,74,\\;comment\n"
489 " 65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
494 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
495 "\"Multi-Line2\"=hex(7):4c,69,6e,65,20,\\\n"
496 " 63,6f,6e,\\;comment\n"
497 " 63,61,74,;comment\n"
498 " 65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
503 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
504 "\"Multi-Line3\"=hex(7):4c,69,6e,65,20\\\n"
505 ",63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
510 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
511 "\"Multi-Line4\"=hex(7):4c,69,6e,65,20\\\n"
512 " ,63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
517 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
518 "\"Multi-Line5\"=hex(7):4c,69,6e,65,20\\\n"
519 ",63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
524 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
525 "\"Multi-Line6\"=hex(7):4c,69,6e,65,20\\\n"
526 " ,63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
531 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
532 "\"Multi-Line7\"=hex(7):4c,69,6e,\\;comment\n"
533 " 65,20,\\;comment\n"
534 " 63,6f,6e,\\;comment\n"
535 " 63,61,74,\\;comment\n"
536 " 65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
541 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
542 "\"Multi-Line8\"=hex(7):4c,69,6e,\\;#comment\n"
543 " 65,20,\\;#comment\n"
544 " 63,6f,6e,\\;#comment\n"
545 " 63,61,74,\\;#comment\n"
546 " 65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
551 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
552 "\"Multi-Line9\"=hex(7):4c,69,6e,\\;comment\n"
553 " 65,20,\\;comment\n"
554 " 63,6f,6e,\\;comment\n"
555 " 63,61,74,\\#comment\n"
556 " 65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
561 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
562 "\"Multi-Line10\"=hex(7):4c,69,6e,65,20,\\\n"
563 " 63,6f,6e,\\;comment\n"
565 " 65,6e,\\;comment\n\n"
566 " 61,74,69,6f,6e,00,00\n\n", &
r);
571 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
572 "\"Wine32a\"=dword:1\n"
573 "\"Wine32b\"=dword:4444\n\n", &
r);
581 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
582 "\"Wine33a\"=dword:\n"
583 "\"Wine33b\"=dword:hello\n"
584 "\"Wine33c\"=dword:123456789\n"
585 "\"Wine33d\"=dword:012345678\n"
586 "\"Wine33e\"=dword:000000001\n\n", &
r);
595 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
596 "\"Wine34a\"=dword:12345678abc\n"
597 "\"Wine34b\"=dword:12345678 abc\n\n", &
r);
603 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
604 "\"Wine35a\"=dword:0x123\n"
605 "\"Wine35b\"=dword:123 456\n"
606 "\"Wine35c\"=dword:1234 5678\n\n", &
r);
613 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
614 "\"Wine36a\"=dword:1234;5678\n"
615 "\"Wine36b\"=dword:1234 ;5678\n"
616 "\"Wine36c\"=dword:1234#5678\n"
617 "\"Wine36d\"=dword:1234 #5678\n\n", &
r);
626 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
627 "\"Wine37a\"=\"foo\"bar\"\n"
628 "\"Wine37b\"=\"foo\"\"bar\"\n\n", &
r);
634 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
635 "\"Empty string\"=\"\"\n"
636 "\"\"=\"Default Value Name\"\n\n", &
r);
642 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
645 "\"Test38c\"=\\\"Value\\\"\n"
646 "\"Test38d\"=\\\"Value\"\n\n", &
r);
654 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
655 "\"Wine39a\"=\"Value1\" ;comment\n"
656 "\"Wine39b\"=\"Value2\"\t\t;comment\n"
657 "\"Wine39c\"=\"Value3\" #comment\n"
658 "\"Wine39d\"=\"Value4\"\t\t#comment\n\n", &
r);
666 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
667 "\"TestNoBeginQuote\"=Asdffdsa\"\n", &
r);
672 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
673 "\"TestNoEndQuote\"=\"Asdffdsa\n", &
r);
678 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
679 "\"TestNoQuotes\"=Asdffdsa\n", &
r);
684 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
685 "NameNoBeginQuote\"=\"Asdffdsa\"\n", &
r);
690 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
691 "\"NameNoEndQuote=\"Asdffdsa\"\n", &
r);
696 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
697 "NameNoQuotes=\"Asdffdsa\"\n", &
r);
702 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
703 "\"MixedQuotes=Asdffdsa\"\n", &
r);
709 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
710 "\"Wine40a\"=hex(2):4c,69,6e,65,00\n"
711 "\"Wine40b\"=\"Value 1\"\n"
712 "\"Wine40c\"=hex(2):4c,69,6e,65\\\n"
713 "\"Wine40d\"=\"Value 2\"\n"
714 "\"Wine40e\"=hex(2):4c,69,6e,65,\\\n"
715 "\"Wine40f\"=\"Value 3\"\n"
716 "\"Wine40g\"=\"Value 4\"\n\n", &
r);
727 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
728 "\"Wine41a\"=dword:1234\\\n"
730 "\"Wine41b\"=\"Test \\\n"
737 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
738 "\"double\\\"quote\"=\"valid \\\"or\\\" not\"\n"
739 "\"single'quote\"=dword:00000008\n\n", &
r);
747 "[HKEY_CURRENT_USER\\" KEY_BASE "\\\n"
753 "[HKEY_CURRENT_USER\\" KEY_BASE "\n"
759 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
761 "42a\"=\"Value 1\"\n"
762 "\"Wine42b\"=\"Value 2\"\n"
764 "\\42c\"=\"Value 3\"\n\n", &
r);
772 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
773 "\"Wine43a\"=hex(0):56,00,61,00,6c,00,75,00,65,00,00,00\n"
774 "\"Wine43b\"=hex(0):56,00,61,00,6c,00,\\\n"
775 " 75,00,65,00,00,00\n"
776 "\"Wine43c\"=hex(0):56,00,61,00,6c,00\\\n"
777 ",75,00,65,00,00,00\n"
778 "\"Wine43d\"=hex(0):56,00,61,00,6c,00\\\n"
779 " ,75,00,65,00,00,00\n"
780 "\"Wine43e\"=hex(0):56,00,61,00,6c,00\\\n"
781 " 75,00,65,00,00,00\n"
782 "\"Wine43f\"=hex(0):56,00,61,00,6c,00,7\\\n"
784 "\"Wine43g\"=hex(0):56,00,61,00,6c,00,7\\\n"
785 " 5,00,65,00,00,00\n"
786 "\"Wine43h\"=hex(0):56,00,61,00,\\;comment\n"
789 "\"Wine43i\"=hex(0):56,00,61,00,\\;comment\n"
792 "\"Wine43j\"=hex(0):56,00,61,00,\\;comment\n"
793 " 6c,00,75,00,;comment\n"
795 "\"Wine43k\"=hex(0):56,00,61,00,\\;comment\n"
796 " 6c,00,75,00,\\#comment\n"
797 " 65,00,00,00\n\n", &
r);
812 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
813 "\"Wine44a\"=hex(2):25,50,41,54,48,25,00\n"
814 "\"Wine44b\"=hex(2):25,50,41,\\\n"
816 "\"Wine44c\"=hex(2):25,50,41\\\n"
818 "\"Wine44d\"=hex(2):25,50,41\\\n"
820 "\"Wine44e\"=hex(2):25,50,41\\\n"
822 "\"Wine44f\"=hex(2):25,50,4\\\n"
824 "\"Wine44g\"=hex(2):25,50,4\\\n"
826 "\"Wine44h\"=hex(2):25,50,41,\\;comment\n"
829 "\"Wine44i\"=hex(2):25,50,41,\\;comment\n"
832 "\"Wine44j\"=hex(2):25,50,41,\\;comment\n"
835 "\"Wine44k\"=hex(2):25,50,41,\\;comment\n"
836 " 54,48,\\#comment\n"
866 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
867 "\"Wine45a\"=hex:11,22,33,44,55,66,77,88\n"
868 "\"Wine45b\"=hex:11,22,33,44,\\\n"
870 "\"Wine45c\"=hex:11,22,33,44\\\n"
872 "\"Wine45d\"=hex:11,22,33,44\\\n"
874 "\"Wine45e\"=hex:11,22,33,44\\\n"
876 "\"Wine45f\"=hex:11,22,33,4\\\n"
878 "\"Wine45g\"=hex:11,22,33,4\\\n"
880 "\"Wine45h\"=hex:11,22,33,44,\\;comment\n"
883 "\"Wine45i\"=hex:11,22,33,44,\\;comment\n"
886 "\"Wine45j\"=hex:11,22,33,44,\\;comment\n"
889 "\"Wine45k\"=hex:11,22,33,\\;comment\n"
890 " 44,55,66,\\#comment\n"
893 hex[0] = 0x11;
hex[1] = 0x22;
hex[2] = 0x33;
hex[3] = 0x44;
894 hex[4] = 0x55;
hex[5] = 0x66;
hex[6] = 0x77;
hex[7] = 0x88;
909 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey\"1]\n"
910 "\"Wine\\\\31\"=\"Test value\"\n\n", &
r);
912 open_key(hkey,
"Subkey\"1", 0, &subkey);
918 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey/2]\n"
919 "\"123/\\\"4;'5\"=\"Random value name\"\n\n", &
r);
921 open_key(hkey,
"Subkey/2", 0, &subkey);
928 "HKEY_CURRENT_USER\\" KEY_BASE "\\No_Opening_Bracket]\n", &
r);
933 "[HKEY_CURRENT_USER\\" KEY_BASE "\\No_Closing_Bracket\n", &
r);
938 "[ HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1a]\n", &
r);
943 "[\tHKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1b]\n", &
r);
948 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1c ]\n", &
r);
954 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1d\t]\n", &
r);
960 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1e\\]\n"
961 "\"Wine\"=\"Test value\"\n\n", &
r);
965 open_key(hkey,
"Subkey1e", 0, &subkey);
971 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1f\\\\]\n"
972 "\"Wine\"=\"Test value\"\n\n", &
r);
977 open_key(hkey,
"Subkey1f\\\\", 0, &subkey);
983 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1g\\\\\\\\]\n"
984 "\"Wine\"=\"Test value\"\n\n", &
r);
990 open_key(hkey,
"Subkey1g\\\\", 0, &subkey);
997 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2a]\n\n"
998 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2b]\n\n", &
r);
1004 "[ -HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2a]\n", &
r);
1009 "[\t-HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2b]\n", &
r);
1014 "[- HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2a]\n", &
r);
1019 "[-\tHKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2b]\n", &
r);
1024 "[-HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2a]\n\n"
1025 "[-HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2b]\n\n", &
r);
1032 "[hkey_CURRENT_user\\" KEY_BASE "\\Subkey3a]\n\n"
1033 "[HkEy_CuRrEnT_uSeR\\" KEY_BASE "\\SuBkEy3b]\n\n", &
r);
1039 "[-HKEY_current_USER\\" KEY_BASE "\\sUBKEY3A]\n\n"
1040 "[-hKeY_cUrReNt_UsEr\\" KEY_BASE "\\sUbKeY3B]\n\n", &
r);
1047 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey4a]\n\n", &
r);
1052 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n\n"
1053 "[-HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey4a]\n"
1054 "\"Wine46a\"=dword:12345678\n\n", &
r);
1060 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n\n"
1061 "[HKEY_CURRENT_USERS\\" KEY_BASE "\\Subkey4b]\n"
1062 "\"Wine46b\"=dword:12345678\n\n", &
r);
1069 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1070 "\"Wine46a\"=\"Test Value\"\n"
1071 "\"Wine46b\"=dword:00000008\n"
1072 "\"Wine46c\"=hex:11,22,33,44\n"
1073 "\"Wine46d\"=hex(7):4c,69,6e,65,20,\\\n"
1074 " 63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n"
1075 "\"Wine46e\"=hex(2):25,50,41,54,48,25,00\n"
1076 "\"Wine46f\"=hex(0):56,00,61,00,6c,00,75,00,65,00,00,00\n\n", &
r);
1086 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1089 "\"Wine46c\"= \t-\t \n"
1090 "\"Wine46d\"=-\"Test\"\n"
1091 "\"Wine46e\"=- ;comment\n"
1092 "\"Wine46f\"=- #comment\n\n", &
r);
1103 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1104 "\"Wine47a\"=hex(0):56,61,6c,75,65,00\n"
1105 "\"Wine47b\"=hex(10):56,61,6c,75,65,00\n"
1106 "\"Wine47c\"=hex(100):56,61,6c,75,65,00\n"
1107 "\"Wine47d\"=hex(1000):56,61,6c,75,65,00\n"
1108 "\"Wine47e\"=hex(7fff):56,61,6c,75,65,00\n"
1109 "\"Wine47f\"=hex(ffff):56,61,6c,75,65,00\n"
1110 "\"Wine47g\"=hex(7fffffff):56,61,6c,75,65,00\n"
1111 "\"Wine47h\"=hex(ffffffff):56,61,6c,75,65,00\n"
1112 "\"Wine47i\"=hex(100000000):56,61,6c,75,65,00\n"
1113 "\"Wine47j\"=hex(0x2):56,61,6c,75,65,00\n"
1114 "\"Wine47k\"=hex(0X2):56,61,6c,75,65,00\n"
1115 "\"Wine47l\"=hex(x2):56,61,6c,75,65,00\n\n", &
r);
1118 verify_reg(hkey,
"Wine47b", 0x10,
"Value", 6, 0);
1119 verify_reg(hkey,
"Wine47c", 0x100,
"Value", 6, 0);
1120 verify_reg(hkey,
"Wine47d", 0x1000,
"Value", 6, 0);
1121 verify_reg(hkey,
"Wine47e", 0x7fff,
"Value", 6, 0);
1122 verify_reg(hkey,
"Wine47f", 0xffff,
"Value", 6, 0);
1123 verify_reg(hkey,
"Wine47g", 0x7fffffff,
"Value", 6, 0);
1124 verify_reg(hkey,
"Wine47h", 0xffffffff,
"Value", 6, 0);
1131 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1132 "\"Wine48a\"=hex(7):4c,69,6e,65,20, \\\n"
1133 " 63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n"
1134 "\"Wine48b\"=hex(7):4c,69,6e,65,20,\t\\\n"
1135 " 63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
1141 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1142 "\"Wine49\"=hex(2):25,50,41,54,48,25,00,\n\n", &
r);
1147 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1148 "\"Wine50a\"=hex(2):25,50,41,54,48,25,00 ;comment\n"
1149 "\"Wine50b\"=hex(2):25,50,41,54,48,25,00\t;comment\n"
1150 "\"Wine50c\"=hex(2):25,50,41,54,48,25,00 #comment\n"
1151 "\"Wine50d\"=hex(2):25,50,41,54,48,25,00\t#comment\n\n", &
r);
1160 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1161 "\"Wine51a\"=hex(0):25,50,100,54,48,25,00\n"
1162 "\"Wine51b\"=hex(0):25,1a4,100,164,124,25,00\n\n", &
r);
1169 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1170 "\"Wine52a\"=hex(2):25,48\\,4f,4d,45,25,00\n"
1171 "\"Wine52b\"=hex(2):25,48,\\4f,4d,45,25,00\n"
1172 "\"Wine52c\"=hex(2):25,48\\ ,4f,4d,45,25,00\n"
1173 "\"Wine52d\"=hex(2):25,48,\\ 4f,4d,45,25,00\n"
1174 "\"Wine52e\"=hex(2):\\25,48,4f,4d,45,25,00\n"
1175 "\"Wine52f\"=hex(2):\\ 25,48,4f,4d,45,25,00\n"
1176 "\"Wine52g\"=hex(2):25,48,4\\f,4d,45,25,00\n"
1177 "\"Wine52h\"=hex(2):25,48,4\\\n"
1179 "\"Wine52i\"=hex(2):25,50,\\,41,54,48,25,00\n"
1180 "\"Wine52j\"=hex(2):25,48,4f,4d,45,25,5c,\\\\\n"
1181 " 25,50,41,54,48,25,00\n"
1182 "\"Wine52k\"=hex(2):,\\\n"
1183 " 25,48,4f,4d,45,25,00\n"
1184 "\"Wine52l\"=hex(2):\\\n"
1185 " 25,48,4f,4d,45,25,00\n\n", &
r);
1201 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1202 "\"Wine53a\"=hex(2):25,48,4f,4d,45,25,5c,\\\n"
1203 " 25,50,41,54,48,25,00\n"
1204 "\"Wine53b\"=hex(2):25,48,4f,4d,45,25,5c\\\n"
1205 " 25,50,41,54,48,25,00\n"
1206 "\"Wine53c\"=hex(2):25,48,4f,4d,45,25,5c, \\ ;comment\n"
1207 " 25,50,41,54,48,25,00\n"
1208 "\"Wine53d\"=hex(2):25,48,4f,4d,45,25,5c \\ ;comment\n"
1209 " 25,50,41,54,48,25,00\n"
1210 "\"Wine53e\"=hex(2):25,48,4f,4d,45,25,5c,\\\t ;comment\n"
1211 " 25,50,41,54,48,25,00\n"
1212 "\"Wine53f\"=hex(2):25,48,4f,4d,45,25,5c\\\t ;comment\n"
1213 " 25,50,41,54,48,25,00\n\n", &
r);
1223 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1224 "\"Wine54a\"=hex(2):4c,69,6e,65,20,\\\n"
1225 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1]\n", &
r);
1231 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1232 "\"Wine54b\"=hex(2):4c,69,6e,65,20\\\n"
1233 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2]\n", &
r);
1241 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1242 "\"Wine55a\"=hex(2):4c,69,6e,65,20,\\\n"
1243 "\"Wine55b\"=\"Test value\"\n"
1245 "\"Wine55c\"=hex(2):4c,69,6e,65,20,\\\n"
1247 "\"Wine55d\"=\"Test value\"\n"
1249 "\"Wine55e\"=hex(2):4c,69,6e,65,20,\\\n"
1251 "\"Wine55f\"=\"Test value\"\n"
1253 "\"Wine55g\"=hex(2):4c,69,6e,65,20,\\\n\n"
1254 "\"Wine55h\"=\"Test value\"\n"
1256 "\"Wine55i\"=hex(2):4c,69,6e,65,20\\\n"
1257 "\"Wine55j\"=\"Test value\"\n\n", &
r);
1271 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1272 "\"Wine56a\"=hex(2):4c,69,6e,65,20,\\\n"
1273 "\"Wine56b\"=dword:00000008\n"
1275 "\"Wine56c\"=hex(2):4c,69,6e,65,20,\\\n"
1277 "\"Wine56d\"=dword:00000008\n"
1279 "\"Wine56e\"=hex(2):4c,69,6e,65,20,\\\n"
1281 "\"Wine56f\"=dword:00000008\n"
1283 "\"Wine56g\"=hex(2):4c,69,6e,65,20,\\\n\n"
1284 "\"Wine56h\"=dword:00000008\n"
1286 "\"Wine56i\"=hex(2):4c,69,6e,65,20\\\n"
1287 "\"Wine56j\"=dword:00000008\n\n", &
r);
1301 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1302 "\"Wine57a\"=hex(2):25,48,4f,4d,45,25,5c,\\\n"
1303 "\"Wine57b\"=hex(2):25,50,41,54,48,25,00\n"
1305 "\"Wine57c\"=hex(2):25,48,4f,4d,45,25,5c,\\\n"
1307 "\"Wine57d\"=hex(2):25,50,41,54,48,25,00\n"
1309 "\"Wine57e\"=hex(2):25,48,4f,4d,45,25,5c,\\\n"
1311 "\"Wine57f\"=hex(2):25,50,41,54,48,25,00\n"
1313 "\"Wine57g\"=hex(2):25,48,4f,4d,45,25,5c,\\\n\n"
1314 "\"Wine57h\"=hex(2):25,50,41,54,48,25,00\n"
1316 "\"Wine57i\"=hex(2):25,48,4f,4d,45,25,5c\\\n"
1317 "\"Wine57j\"=hex(2):25,50,41,54,48,25,00\n\n", &
r);
1333 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1334 "\"Wine58a\"=hex(2):4c,69,6e,65,20,\\\n"
1335 "@=\"Default value 1\"\n\n", &
r);
1341 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1342 "\"Wine58b\"=hex(2):4c,69,6e,65,20,\\\n"
1344 "@=\"Default value 2\"\n\n", &
r);
1350 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1351 "\"Wine58c\"=hex(2):4c,69,6e,65,20,\\\n"
1353 "@=\"Default value 3\"\n\n", &
r);
1361 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1362 "\"Wine58d\"=hex(2):4c,69,6e,65,20,\\\n\n"
1363 "@=\"Default value 4\"\n\n", &
r);
1369 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1370 "\"Wine58e\"=hex(2):4c,69,6e,65,20\\\n"
1371 "@=\"Default value 5\"\n\n", &
r);
1377 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1378 "\"Wine59a\"=hex:11,22,33,\\\n"
1381 "\"Wine59b\"=hex:11,22,33,\\\n"
1383 " 44,55,66\n\n", &
r);
1389 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1390 "\"Wine60a\"=hex(7):4c,69,6e,65,20,\\\n"
1391 " 63,6f,6e,63,61,74,\\\n"
1393 " 65,6e,\\;comment\n"
1394 " 61,74,69,6f,6e,00,00\n\n", &
r);
1399 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1400 "\"Wine60b\"=hex(7):4c,69,6e,65,20,\\\n"
1401 " 63,6f,6e,63,61,74,\\\n"
1403 " 65,6e,\\;comment\n"
1404 " 61,74,69,6f,6e,00,00\n\n", &
r);
1409 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1410 "\"Wine60c\"=hex(7):4c,69,6e,65,20,\\\n"
1411 " 63,6f,6e,63,61,74,\\\n"
1413 " 65,6e,\\;comment\n"
1414 " 61,74,69,6f,6e,00,00\n\n", &
r);
1419 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1420 "\"Wine60d\"=hex(7):4c,69,6e,65,20,\\\n"
1421 " 63,6f,6e,63,61,74,\\\n"
1423 " 65,6e,\\;comment\n"
1424 " 61,74,69,6f,6e,00,00\n\n", &
r);
1429 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1430 "\"Wine60e\"=hex(7):4c,69,6e,65,20,\\\n"
1432 " 63,61,74,\\\n\n\n"
1434 " 61,74,69,6f,6e,00,00\n\n", &
r);
1439 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1440 "\"Wine60f\"=hex(7):4c,69,6e,65,20,\\\n"
1442 " 63,61,74,\\\n\t\n\t\n"
1443 " 65,6e,\\\n\t \t\n\t \t\n\t \t\n"
1444 " 61,74,69,6f,6e,00,00\n\n", &
r);
1449 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1450 "\"Wine61a\"=hex(0):25,48,4f,4d,45,25,5c,/\n"
1451 " 25,50,41,54,48,25,00\n"
1452 "\"Wine61b\"=hex(0):25,48,4f,4d,45,25,5c/\n"
1453 " 25,50,41,54,48,25,00\n\n", &
r);
1459 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1460 "\"Wine62a\"=hex(0):56,61,6c,75,65,\\", &
r);
1464 "got exit code %d, expected 0\n",
err);
1469 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1470 "\"Wine62b\"=hex(2):25,50,41,54,48,25,\\", &
r);
1474 "got exit code %d, expected 0\n",
err);
1479 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1480 "\"Wine62c\"=hex:11,22,33,44,55,\\", &
r);
1484 "got exit code %d, expected 0\n",
err);
1489 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1490 "\"Wine62d\"=hex(7):4c,69,6e,65,\\", &
r);
1494 "got exit code %d, expected 0\n",
err);
1499 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1500 "\"Wine62e\"=hex(100):56,61,6c,75,65,\\", &
r);
1504 "got exit code %d, expected 0\n",
err);
1506 verify_reg(hkey,
"Wine62e", 0x100,
"Value", 5, 0);
1509 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1510 "\"Wine62f\"=hex(7):4c,69,6e,65,20\\", &
r);
1515 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1516 "\"Wine63a\"=hex(7):4c,69,6e,65,20,\\\n"
1517 " ,63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n"
1518 "\"Wine63b\"=hex(7):4c,69,6e,65,20,\\\n"
1519 " 63,,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
1525 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1526 "\"Wine64a\"=hex(7):4c,69,6e,65,00,00\n"
1527 "\"Wine64b\"=hex(7):4c,69,6e,65,20,\\\n"
1528 " 63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n"
1529 "\"Wine64c\"=hex(7):4c,69,6e,65,20,\\;comment\n"
1530 " 63,6f,6e,63,61,74,\\\n"
1531 " 65,6e,61,74,69,6f,6e,00,00\n"
1532 "\"Wine64d\"=hex(7):4c,69,6e,65,20,\\;comment\n"
1533 " 63,6f,6e,63,61,74,\n"
1534 " 65,6e,61,74,69,6f,6e,00,00\n"
1535 "\"Wine64e\"=hex(7):4c,69,6e,65,20,\\\n"
1536 " 63,6f,6e,63,61,74,;comment\n"
1537 " 65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
1558 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1559 "\"Wine65a\"=hex(100):25,50,41,54,48,25,00\n"
1560 "\"Wine65b\"=hex(100):25,50,41,\\\n"
1562 "\"Wine65c\"=hex(100):25,50,41,\\;comment\n"
1565 "\"Wine65d\"=hex(100):25,50,41,\\;comment\n"
1568 "\"Wine65e\"=hex(100):25,50,41,\\;comment\n"
1572 verify_reg(hkey,
"Wine65a", 0x100,
"%PATH%", 7, 0);
1573 verify_reg(hkey,
"Wine65b", 0x100,
"%PATH%", 7, 0);
1574 verify_reg(hkey,
"Wine65c", 0x100,
"%PATH%", 7, 0);
1575 verify_reg(hkey,
"Wine65d", 0x100,
"%PATH", 5, 0);
1576 verify_reg(hkey,
"Wine65e", 0x100,
"%PATH", 5, 0);
1580 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1581 "\"Wine66a\"=hex(7):4c,69,6e,65\n"
1582 "\"Wine66b\"=hex(7):4c,69,6e,65,\n"
1583 "\"Wine66c\"=hex(7):4c,69,6e,65,00\n"
1584 "\"Wine66d\"=hex(7):4c,69,6e,65,00,\n"
1585 "\"Wine66e\"=hex(7):4c,69,6e,65,00,00\n"
1586 "\"Wine66f\"=hex(7):4c,69,6e,65,00,00,\n\n", &
r);
1596 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1597 "\"Wine67a\"=hex(2):25,50,41,54,48,25\n"
1598 "\"Wine67b\"=hex(2):25,50,41,54,48,25,\n"
1599 "\"Wine67c\"=hex(2):25,50,41,54,48,25,00\n"
1600 "\"Wine67d\"=hex(2):25,50,41,54,48,25,00,\n\n", &
r);
1608 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1609 "\"Wine68a\"=hex(1):\n"
1610 "\"Wine68b\"=hex(2):\n"
1611 "\"Wine68c\"=hex(3):\n"
1612 "\"Wine68d\"=hex(4):\n"
1613 "\"Wine68e\"=hex(7):\n"
1614 "\"Wine68f\"=hex(100):\n"
1615 "\"Wine68g\"=hex(abcd):\n"
1616 "\"Wine68h\"=hex:\n"
1617 "\"Wine68i\"=hex(0):\n\n", &
r);
1631 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1632 "\"Wine69a\"=\"\\\\0\"\n"
1633 "\"Wine69b\"=\"\\\\0\\\\0\"\n"
1634 "\"Wine69c\"=\"Value1\\\\0\"\n"
1635 "\"Wine69d\"=\"Value2\\\\0\\\\0\\\\0\\\\0\"\n"
1636 "\"Wine69e\"=\"Value3\\\\0Value4\"\n"
1637 "\"Wine69f\"=\"\\\\0Value5\"\n\n", &
r);
1647 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1648 "\"Wine70a\"=\"\\0\"\n"
1649 "\"Wine70b\"=\"\\0\\0\"\n"
1650 "\"Wine70c\"=\"Value1\\0\"\n"
1651 "\"Wine70d\"=\"Value2\\0\\0\\0\\0\"\n"
1652 "\"Wine70e\"=\"Value3\\0Value4\"\n"
1653 "\"Wine70f\"=\"\\0Value5\"\n\n", &
r);
1664 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1665 "\"count/up\"=\"one/two/three\"\n"
1666 "\"\\\\foo\\\\bar\"=\"\"\n\n"
1667 "[HKEY_CURRENT_USER\\" KEY_BASE "\\https://winehq.org]\n\n", &
r);
1690 "got exit code %d, expected 1\n",
r);
1694 "got exit code %d, expected 1\n",
r);
1716 "got exit code %d, expected 1\n",
r);
1719 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n", &
r);
1725 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1726 "\"Test1\"=\"Value\"\n", &
r);
1731 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1732 "\"Test2\"=\"Value\"\n", &
r);
1734 "got exit code %d, expected 1\n",
r);
1738 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1739 "\"Test3\"=\"Value\"\n", &
r);
1741 "got exit code %d, expected 1\n",
r);
1745 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1746 "\"Test4\"=\"Value\"\n", &
r);
1751 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1752 "\"Test5\"=\"Value\"\n", &
r);
1757 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1758 "\"Test6\"=\"Value\"\n", &
r);
1763 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1764 "\"Test7\"=\"Value\"\n", &
r);
1769 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1770 "\"Test8\"=\"Value\"\n", &
r);
1775 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1776 "\"Unicode1\"=\"Value1\"\n", &
r);
1781 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1782 "\"Unicode2\"=\"Value2\"\n\n", &
r);
1787 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1788 "\"Unicode3\"=\"Value3\"\n\n", &
r);
1794 "got exit code %d, expected 1\n",
r);
1798 "got exit code %d, expected 1\n",
r);
1802 "got exit code %d, expected 1\n",
r);
1812 "got exit code %d, expected 1\n",
r);
1822 "got exit code %d, expected 1\n",
r);
1825 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1826 "\"Test9\"=\"Value\"\n", &
r);
1828 "got exit code %d, expected 1\n",
r);
1832 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1833 "\"Test10\"=\"Value\"\n", &
r);
1835 "got exit code %d, expected 1\n",
r);
1839 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1840 "\"Test11\"=\"Value\"\n", &
r);
1842 "got exit code %d, expected 1\n",
r);
1846 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1847 "\"Test12\"=\"Value\"\n", &
r);
1849 "got exit code %d, expected 1\n",
r);
1853 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1854 "\"Wine\"=dword:00000123\n\n", &
r);
1859 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1860 "@=\"Test string\"\n\n", &
r);
1865 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1866 "\"Unicode4\"=\"Value4\"\n", &
r);
1871 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1872 "\"Unicode5\"=\"Value5\"\n\n", &
r);
1877 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1878 "\"Unicode6\"=\"Value6\"\n\n", &
r);
1883 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1884 "\"Line1\"=\"Value1\"\n\n"
1885 "\"Line2\"=\"Value2\"\n\n\n"
1886 "\"Line3\"=\"Value3\"\n\n\n\n"
1887 "\"Line4\"=\"Value4\"\n\n", &
r);
1895 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1896 "\"Wine1\"=dword:00000782\n\n"
1897 "\"Wine2\"=\"Test Value\"\n"
1898 "\"Wine3\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,63,00,6f,00,6e,00,63,00,\\\n"
1899 " 61,00,74,00,65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n"
1903 "\"Wine4\"=dword:12345678\n\n", &
r);
1914 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1915 "\"Wine5\"=\"No newline\"", &
r);
1919 "got exit code %d, expected 0\n",
err);
1924 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1925 "\"Wine6\"=dword:00000050\n\n"
1926 "\"Wine7\"=\"No newline\"", &
r);
1932 "got exit code %d, expected 0\n",
err);
1937 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1939 "\"Wine8\"=\"Line 1\"\n"
1941 "\"Wine9\"=\"Line 2\"\n\n", &
r);
1947 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1948 "\"Wine10\"=\"Value 1\"#comment\n"
1949 "\"Wine11\"=\"Value 2\";comment\n"
1950 "\"Wine12\"=dword:01020304 #comment\n"
1951 "\"Wine13\"=dword:02040608 ;comment\n\n", &
r);
1960 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1961 "\"Wine14\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,63,00,6f,00,6e,00,63,00,\\\n"
1963 " 61,00,74,00,65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n"
1964 "\"Wine15\"=\"A valid line\"\n"
1965 "\"Wine16\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,63,00,6f,00,6e,00,63,00,\\\n"
1967 " 61,00,74,00,65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n"
1968 "\"Wine17\"=\"Another valid line\"\n\n", &
r);
1976 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1977 "#\"Comment1\"=\"Value 1\"\n"
1978 ";\"Comment2\"=\"Value 2\"\n"
1979 " #\"Comment3\"=\"Value 3\"\n"
1980 " ;\"Comment4\"=\"Value 4\"\n"
1981 "\"Wine18\"=\"Value 6\"#\"Comment5\"=\"Value 5\"\n"
1982 "\"Wine19\"=\"Value 7\";\"Comment6\"=\"Value 6\"\n\n", &
r);
1994 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1995 "\"Wine20\"=#\"Value 8\"\n"
1996 "\"Wine21\"=;\"Value 9\"\n"
1997 "\"Wine22\"=\"#comment1\"\n"
1998 "\"Wine23\"=\";comment2\"\n"
1999 "\"Wine24\"=\"Value#comment3\"\n"
2000 "\"Wine25\"=\"Value;comment4\"\n"
2001 "\"Wine26\"=\"Value #comment5\"\n"
2002 "\"Wine27\"=\"Value ;comment6\"\n"
2003 "\"Wine28\"=#dword:00000001\n"
2004 "\"Wine29\"=;dword:00000002\n"
2005 "\"Wine30\"=dword:00000003#comment\n"
2006 "\"Wine31\"=dword:00000004;comment\n\n", &
r);
2023 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2024 "\"Wine32a\"=dword:1\n"
2025 "\"Wine32b\"=dword:4444\n\n", &
r);
2033 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2034 "\"Wine33a\"=dword:\n"
2035 "\"Wine33b\"=dword:hello\n"
2036 "\"Wine33c\"=dword:123456789\n"
2037 "\"Wine33d\"=dword:012345678\n"
2038 "\"Wine33e\"=dword:000000001\n\n", &
r);
2047 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2048 "\"Wine34a\"=dword:12345678abc\n"
2049 "\"Wine34b\"=dword:12345678 abc\n\n", &
r);
2055 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2056 "\"Wine35a\"=dword:0x123\n"
2057 "\"Wine35b\"=dword:123 456\n"
2058 "\"Wine35c\"=dword:1234 5678\n\n", &
r);
2065 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2066 "\"Wine36a\"=dword:1234;5678\n"
2067 "\"Wine36b\"=dword:1234 ;5678\n"
2068 "\"Wine36c\"=dword:1234#5678\n"
2069 "\"Wine36d\"=dword:1234 #5678\n\n", &
r);
2078 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2079 "\"Wine37a\"=\"foo\"bar\"\n"
2080 "\"Wine37b\"=\"foo\"\"bar\"\n\n", &
r);
2086 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2087 "\"Empty string\"=\"\"\n"
2088 "\"\"=\"Default registry value\"\n\n", &
r);
2094 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2096 "\"Test38b\"=\\\"\n"
2097 "\"Test38c\"=\\\"Value\\\"\n"
2098 "\"Test38d\"=\\\"Value\"\n\n", &
r);
2106 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2107 "\"Wine39a\"=\"Value1\" ;comment\n"
2108 "\"Wine39b\"=\"Value2\"\t\t;comment\n"
2109 "\"Wine39c\"=\"Value3\" #comment\n"
2110 "\"Wine39d\"=\"Value4\"\t\t#comment\n\n", &
r);
2118 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2119 "\"TestNoBeginQuote\"=Asdffdsa\"\n", &
r);
2124 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2125 "\"TestNoEndQuote\"=\"Asdffdsa\n", &
r);
2130 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2131 "\"TestNoQuotes\"=Asdffdsa\n", &
r);
2136 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2137 "NameNoBeginQuote\"=\"Asdffdsa\"\n", &
r);
2142 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2143 "\"NameNoEndQuote=\"Asdffdsa\"\n", &
r);
2148 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2149 "NameNoQuotes=\"Asdffdsa\"\n", &
r);
2154 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2155 "\"MixedQuotes=Asdffdsa\"\n", &
r);
2161 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2162 "\"Wine40a\"=hex(2):4c,00,69,00,6e,00,65,00,00,00\n"
2163 "\"Wine40b\"=\"Value 1\"\n"
2164 "\"Wine40c\"=hex(2):4c,00,69,00,6e,00,65,00\\\n"
2165 "\"Wine40d\"=\"Value 2\"\n"
2166 "\"Wine40e\"=hex(2):4c,00,69,00,6e,00,65,00,\\\n"
2167 "\"Wine40f\"=\"Value 3\"\n"
2168 "\"Wine40g\"=\"Value 4\"\n\n", &
r);
2179 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2180 "\"Multi-Line1\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2181 " 63,00,6f,00,6e,00,\\;comment\n"
2182 " 63,00,61,00,74,00,\\;comment\n"
2183 " 65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
2188 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2189 "\"Multi-Line2\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2190 " 63,00,6f,00,6e,00,\\;comment\n"
2191 " 63,00,61,00,74,00,;comment\n"
2192 " 65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
2197 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2198 "\"Multi-Line3\"=hex(7):4c,69,6e,65,20\\\n"
2199 ",63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
2204 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2205 "\"Multi-Line4\"=hex(7):4c,69,6e,65,20\\\n"
2206 " ,63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
2211 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2212 "\"Multi-Line5\"=hex(7):4c,69,6e,65,20\\\n"
2213 ",63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
2218 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2219 "\"Multi-Line6\"=hex(7):4c,69,6e,65,20\\\n"
2220 " ,63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
2225 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2226 "\"Multi-Line7\"=hex(7):4c,00,69,00,6e,00,\\;comment\n"
2227 " 65,00,20,00,\\;comment\n"
2228 " 63,00,6f,00,6e,00,\\;comment\n"
2229 " 63,00,61,00,74,00,\\;comment\n"
2230 " 65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
2235 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2236 "\"Multi-Line8\"=hex(7):4c,00,69,00,6e,00,\\;#comment\n"
2237 " 65,00,20,00,\\;#comment\n"
2238 " 63,00,6f,00,6e,00,\\;#comment\n"
2239 " 63,00,61,00,74,00,\\;#comment\n"
2240 " 65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
2245 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2246 "\"Multi-Line9\"=hex(7):4c,00,69,00,6e,00,\\;comment\n"
2247 " 65,00,20,00,\\;comment\n"
2248 " 63,00,6f,00,6e,00,\\;comment\n"
2249 " 63,00,61,00,74,00,\\#comment\n"
2250 " 65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
2255 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2256 "\"Multi-Line10\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2257 " 63,00,6f,00,6e,00,\\;comment\n"
2258 " 63,00,61,00,74,00,\\\n\n"
2259 " 65,00,6e,00,\\;comment\n\n"
2260 " 61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
2265 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2266 "\"Wine41a\"=dword:1234\\\n"
2268 "\"Wine41b\"=\"Test \\\n"
2275 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2276 "\"double\\\"quote\"=\"valid \\\"or\\\" not\"\n"
2277 "\"single'quote\"=dword:00000008\n\n", &
r);
2285 "[HKEY_CURRENT_USER\\" KEY_BASE "\\\n"
2291 "[HKEY_CURRENT_USER\\" KEY_BASE "\n"
2292 "\\Subkey2]\n", &
r);
2297 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2299 "42a\"=\"Value 1\"\n"
2300 "\"Wine42b\"=\"Value 2\"\n"
2302 "\\42c\"=\"Value 3\"\n\n", &
r);
2310 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2311 "\"Wine43a\"=hex(0):56,00,61,00,6c,00,75,00,65,00,00,00\n"
2312 "\"Wine43b\"=hex(0):56,00,61,00,6c,00,\\\n"
2313 " 75,00,65,00,00,00\n"
2314 "\"Wine43c\"=hex(0):56,00,61,00,6c,00\\\n"
2315 ",75,00,65,00,00,00\n"
2316 "\"Wine43d\"=hex(0):56,00,61,00,6c,00\\\n"
2317 " ,75,00,65,00,00,00\n"
2318 "\"Wine43e\"=hex(0):56,00,61,00,6c,00\\\n"
2319 " 75,00,65,00,00,00\n"
2320 "\"Wine43f\"=hex(0):56,00,61,00,6c,00,7\\\n"
2321 "5,00,65,00,00,00\n"
2322 "\"Wine43g\"=hex(0):56,00,61,00,6c,00,7\\\n"
2323 " 5,00,65,00,00,00\n"
2324 "\"Wine43h\"=hex(0):56,00,61,00,\\;comment\n"
2327 "\"Wine43i\"=hex(0):56,00,61,00,\\;comment\n"
2330 "\"Wine43j\"=hex(0):56,00,61,00,\\;comment\n"
2331 " 6c,00,75,00,;comment\n"
2333 "\"Wine43k\"=hex(0):56,00,61,00,\\;comment\n"
2334 " 6c,00,75,00,\\#comment\n"
2335 " 65,00,00,00\n\n", &
r);
2350 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2351 "\"Wine44a\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
2352 "\"Wine44b\"=hex(2):25,00,50,00,41,00,\\\n"
2353 " 54,00,48,00,25,00,00,00\n"
2354 "\"Wine44c\"=hex(2):25,00,50,00,41,00\\\n"
2355 ",54,00,48,00,25,00,00,00\n"
2356 "\"Wine44d\"=hex(2):25,00,50,00,41,00\\\n"
2357 " ,54,00,48,00,25,00,00,00\n"
2358 "\"Wine44e\"=hex(2):25,00,50,00,41,00\\\n"
2359 " 54,00,48,00,25,00,00,00\n"
2360 "\"Wine44f\"=hex(2):25,00,50,00,4\\\n"
2361 "1,00,54,00,48,00,25,00,00,00\n"
2362 "\"Wine44g\"=hex(2):25,00,50,00,4\\\n"
2363 " 1,00,54,00,48,00,25,00,00,00\n"
2364 "\"Wine44h\"=hex(2):25,00,50,00,41,00,\\;comment\n"
2367 "\"Wine44i\"=hex(2):25,00,50,00,41,00,\\;comment\n"
2370 "\"Wine44j\"=hex(2):25,00,50,00,41,00,\\;comment\n"
2371 " 54,00,48,00;comment\n"
2373 "\"Wine44k\"=hex(2):25,00,50,00,41,00,\\;comment\n"
2374 " 54,00,48,00,\\#comment\n"
2375 " 25,00,00,00\n\n", &
r);
2404 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2405 "\"Wine45a\"=hex:11,22,33,44,55,66,77,88\n"
2406 "\"Wine45b\"=hex:11,22,33,44,\\\n"
2408 "\"Wine45c\"=hex:11,22,33,44\\\n"
2410 "\"Wine45d\"=hex:11,22,33,44\\\n"
2412 "\"Wine45e\"=hex:11,22,33,44\\\n"
2414 "\"Wine45f\"=hex:11,22,33,4\\\n"
2416 "\"Wine45g\"=hex:11,22,33,4\\\n"
2418 "\"Wine45h\"=hex:11,22,33,44,\\;comment\n"
2421 "\"Wine45i\"=hex:11,22,33,44,\\;comment\n"
2424 "\"Wine45j\"=hex:11,22,33,44,\\;comment\n"
2427 "\"Wine45k\"=hex:11,22,33,\\;comment\n"
2428 " 44,55,66,\\#comment\n"
2431 hex[0] = 0x11;
hex[1] = 0x22;
hex[2] = 0x33;
hex[3] = 0x44;
2432 hex[4] = 0x55;
hex[5] = 0x66;
hex[6] = 0x77;
hex[7] = 0x88;
2447 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey\"1]\n"
2448 "\"Wine\\\\31\"=\"Test value\"\n\n", &
r);
2450 open_key(hkey,
"Subkey\"1", 0, &subkey);
2456 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey/2]\n"
2457 "\"123/\\\"4;'5\"=\"Random value name\"\n\n", &
r);
2459 open_key(hkey,
"Subkey/2", 0, &subkey);
2466 "HKEY_CURRENT_USER\\" KEY_BASE "\\No_Opening_Bracket]\n", &
r);
2471 "[HKEY_CURRENT_USER\\" KEY_BASE "\\No_Closing_Bracket\n", &
r);
2476 "[ HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1a]\n", &
r);
2481 "[\tHKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1b]\n", &
r);
2486 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1c ]\n", &
r);
2492 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1d\t]\n", &
r);
2498 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1e\\]\n"
2499 "\"Wine\"=\"Test value\"\n\n", &
r);
2503 open_key(hkey,
"Subkey1e", 0, &subkey);
2509 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1f\\\\]\n"
2510 "\"Wine\"=\"Test value\"\n\n", &
r);
2515 open_key(hkey,
"Subkey1f\\\\", 0, &subkey);
2521 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1g\\\\\\\\]\n"
2522 "\"Wine\"=\"Test value\"\n\n", &
r);
2528 open_key(hkey,
"Subkey1g\\\\", 0, &subkey);
2535 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2a]\n\n"
2536 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2b]\n\n", &
r);
2542 "[ -HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2a]\n", &
r);
2547 "[\t-HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2b]\n", &
r);
2552 "[- HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2a]\n", &
r);
2557 "[-\tHKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2b]\n", &
r);
2562 "[-HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2a]\n\n"
2563 "[-HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2b]\n\n", &
r);
2570 "[hkey_CURRENT_user\\" KEY_BASE "\\Subkey3a]\n\n"
2571 "[HkEy_CuRrEnT_uSeR\\" KEY_BASE "\\SuBkEy3b]\n\n", &
r);
2577 "[-HKEY_current_USER\\" KEY_BASE "\\sUBKEY3A]\n\n"
2578 "[-hKeY_cUrReNt_UsEr\\" KEY_BASE "\\sUbKeY3B]\n\n", &
r);
2585 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey4a]\n\n", &
r);
2590 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n\n"
2591 "[-HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey4a]\n"
2592 "\"Wine46a\"=dword:12345678\n\n", &
r);
2598 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n\n"
2599 "[HKEY_CURRENT_USERS\\" KEY_BASE "\\Subkey4b]\n"
2600 "\"Wine46b\"=dword:12345678\n\n", &
r);
2607 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2608 "\"Wine46a\"=\"Test Value\"\n"
2609 "\"Wine46b\"=dword:00000008\n"
2610 "\"Wine46c\"=hex:11,22,33,44\n"
2611 "\"Wine46d\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2612 " 63,00,6f,00,6e,00,63,00,61,00,74,00,\\\n"
2613 " 65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n"
2614 "\"Wine46e\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
2615 "\"Wine46f\"=hex(0):56,00,61,00,6c,00,75,00,65,00,00,00\n\n", &
r);
2625 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2628 "\"Wine46c\"= \t-\t \n"
2629 "\"Wine46d\"=-\"Test\"\n"
2630 "\"Wine46e\"=- ;comment\n"
2631 "\"Wine46f\"=- #comment\n\n", &
r);
2642 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2643 "\"Wine47a\"=hex(0):56,61,6c,75,65,00\n"
2644 "\"Wine47b\"=hex(10):56,61,6c,75,65,00\n"
2645 "\"Wine47c\"=hex(100):56,61,6c,75,65,00\n"
2646 "\"Wine47d\"=hex(1000):56,61,6c,75,65,00\n"
2647 "\"Wine47e\"=hex(7fff):56,61,6c,75,65,00\n"
2648 "\"Wine47f\"=hex(ffff):56,61,6c,75,65,00\n"
2649 "\"Wine47g\"=hex(7fffffff):56,61,6c,75,65,00\n"
2650 "\"Wine47h\"=hex(ffffffff):56,61,6c,75,65,00\n"
2651 "\"Wine47i\"=hex(100000000):56,61,6c,75,65,00\n"
2652 "\"Wine47j\"=hex(0x2):56,00,61,00,6c,00,75,00,65,00,00,00\n"
2653 "\"Wine47k\"=hex(0X2):56,00,61,00,6c,00,75,00,65,00,00,00\n"
2654 "\"Wine47l\"=hex(x2):56,00,61,00,6c,00,75,00,65,00,00,00\n\n", &
r);
2657 verify_reg(hkey,
"Wine47b", 0x10,
"Value", 6, 0);
2658 verify_reg(hkey,
"Wine47c", 0x100,
"Value", 6, 0);
2659 verify_reg(hkey,
"Wine47d", 0x1000,
"Value", 6, 0);
2660 verify_reg(hkey,
"Wine47e", 0x7fff,
"Value", 6, 0);
2661 verify_reg(hkey,
"Wine47f", 0xffff,
"Value", 6, 0);
2662 verify_reg(hkey,
"Wine47g", 0x7fffffff,
"Value", 6, 0);
2663 verify_reg(hkey,
"Wine47h", 0xffffffff,
"Value", 6, 0);
2670 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2671 "\"Wine48a\"=hex(7):4c,00,69,00,6e,00,65,00,20,00, \\\n"
2672 " 63,00,6f,00,6e,00,63,00,61,00,74,00, \\\n"
2673 " 65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n"
2674 "\"Wine48b\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\t\\\n"
2675 " 63,00,6f,00,6e,00,63,00,61,00,74,00,\t \t \\\n"
2676 " 65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
2682 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2683 "\"Wine49\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00,\n\n", &
r);
2688 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2689 "\"Wine50a\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00 ;comment\n"
2690 "\"Wine50b\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00\t;comment\n"
2691 "\"Wine50c\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00 #comment\n"
2692 "\"Wine50d\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00\t#comment\n\n", &
r);
2701 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2702 "\"Wine51a\"=hex(0):25,50,100,54,48,25,00\n"
2703 "\"Wine51b\"=hex(0):25,1a4,100,164,124,25,00\n\n", &
r);
2710 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2711 "\"Wine52a\"=hex(2):25,00,48\\,00,4f,00,4d,00,45,00,25,00,00,00\n"
2712 "\"Wine52b\"=hex(2):25,00,48,00,\\4f,00,4d,00,45,00,25,00,00,00\n"
2713 "\"Wine52c\"=hex(2):25,00,48\\ ,00,4f,00,4d,00,45,00,25,00,00,00\n"
2714 "\"Wine52d\"=hex(2):25,00,48,00,\\ 4f,00,4d,00,45,00,25,00,00,00\n"
2715 "\"Wine52e\"=hex(2):\\25,00,48,00,4f,00,4d,00,45,00,25,00,00,00\n"
2716 "\"Wine52f\"=hex(2):\\ 25,00,48,00,4f,00,4d,00,45,00,25,00,00,00\n"
2717 "\"Wine52g\"=hex(2):25,00,48,00,4\\f,00,4d,00,45,00,25,00,00,00\n"
2718 "\"Wine52h\"=hex(2):25,00,48,00,4\\\n"
2719 " f,00,4d,00,45,00,25,00,00,00\n"
2720 "\"Wine52i\"=hex(2):25,00,50,00,\\,41,00,54,00,48,00,25,00,00,00\n"
2721 "\"Wine52j\"=hex(2):25,00,48,00,4f,00,4d,00,45,00,25,00,5c,00,\\\\\n"
2722 " 25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
2723 "\"Wine52k\"=hex(2):,\\\n"
2724 " 25,00,48,00,4f,00,4d,00,45,00,25,00,00,00\n"
2725 "\"Wine52l\"=hex(2):\\\n"
2726 " 25,00,48,00,4f,00,4d,00,45,00,25,00,00,00\n\n", &
r);
2742 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2743 "\"Wine53a\"=hex(2):25,00,48,00,4f,00,4d,00,45,00,25,00,5c,00,\\\n"
2744 " 25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
2745 "\"Wine53b\"=hex(2):25,00,48,00,4f,00,4d,00,45,00,25,00,5c,00\\\n"
2746 " 25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
2747 "\"Wine53c\"=hex(2):25,00,48,00,4f,00,4d,00,45,00,25,00,5c,00, \\ ;comment\n"
2748 " 25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
2749 "\"Wine53d\"=hex(2):25,00,48,00,4f,00,4d,00,45,00,25,00,5c,00 \\ ;comment\n"
2750 " 25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
2751 "\"Wine53e\"=hex(2):25,00,48,00,4f,00,4d,00,45,00,25,00,5c,00,\\\t ;comment\n"
2752 " 25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
2753 "\"Wine53f\"=hex(2):25,00,48,00,4f,00,4d,00,45,00,25,00,5c,00\\\t ;comment\n"
2754 " 25,00,50,00,41,00,54,00,48,00,25,00,00,00\n\n", &
r);
2764 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2765 "\"Wine54a\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2766 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1]\n", &
r);
2772 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2773 "\"Wine54b\"=hex(2):4c,00,69,00,6e,00,65,00,20,00\\\n"
2774 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2]\n", &
r);
2782 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2783 "\"Wine55a\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2784 "\"Wine55b\"=\"Test value\"\n"
2786 "\"Wine55c\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2788 "\"Wine55d\"=\"Test value\"\n"
2790 "\"Wine55e\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2792 "\"Wine55f\"=\"Test value\"\n"
2794 "\"Wine55g\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n\n"
2795 "\"Wine55h\"=\"Test value\"\n"
2797 "\"Wine55i\"=hex(2):4c,00,69,00,6e,00,65,00,20,00\\\n"
2798 "\"Wine55j\"=\"Test value\"\n\n", &
r);
2812 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2813 "\"Wine56a\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2814 "\"Wine56b\"=dword:00000008\n"
2816 "\"Wine56c\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2818 "\"Wine56d\"=dword:00000008\n"
2820 "\"Wine56e\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2822 "\"Wine56f\"=dword:00000008\n"
2824 "\"Wine56g\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n\n"
2825 "\"Wine56h\"=dword:00000008\n"
2827 "\"Wine56i\"=hex(2):4c,00,69,00,6e,00,65,00,20,00\\\n"
2828 "\"Wine56j\"=dword:00000008\n\n", &
r);
2842 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2843 "\"Wine57a\"=hex(2):25,00,48,00,4f,00,4d,00,45,00,25,00,5c,00,\\\n"
2844 "\"Wine57b\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
2846 "\"Wine57c\"=hex(2):25,00,48,00,4f,00,4d,00,45,00,25,00,5c,00,\\\n"
2848 "\"Wine57d\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
2850 "\"Wine57e\"=hex(2):25,00,48,00,4f,00,4d,00,45,00,25,00,5c,00,\\\n"
2852 "\"Wine57f\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
2854 "\"Wine57g\"=hex(2):25,00,48,00,4f,00,4d,00,45,00,25,00,5c,00,\\\n\n"
2855 "\"Wine57h\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
2857 "\"Wine57i\"=hex(2):25,00,48,00,4f,00,4d,00,45,00,25,00,5c,00\\\n"
2858 "\"Wine57j\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00\n\n", &
r);
2874 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2875 "\"Wine58a\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2876 "@=\"Default value 1\"\n\n", &
r);
2882 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2883 "\"Wine58b\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2885 "@=\"Default value 2\"\n\n", &
r);
2891 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2892 "\"Wine58c\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2894 "@=\"Default value 3\"\n\n", &
r);
2902 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2903 "\"Wine58d\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n\n"
2904 "@=\"Default value 4\"\n\n", &
r);
2910 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2911 "\"Wine58e\"=hex(2):4c,00,69,00,6e,00,65,00,20,00\\\n"
2912 "@=\"Default value 5\"\n\n", &
r);
2918 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2919 "\"Wine59a\"=hex:11,22,33,\\\n"
2922 "\"Wine59b\"=hex:11,22,33,\\\n"
2924 " 44,55,66\n\n", &
r);
2930 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2931 "\"Wine60a\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2932 " 63,00,6f,00,6e,00,63,00,61,00,74,00,\\\n"
2934 " 65,00,6e,00,\\;comment\n"
2935 " 61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
2940 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2941 "\"Wine60b\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2942 " 63,00,6f,00,6e,00,63,00,61,00,74,00,\\\n"
2944 " 65,00,6e,00,\\;comment\n"
2945 " 61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
2950 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2951 "\"Wine60c\"=hex(7):4c,69,6e,65,20,\\\n"
2952 " 63,00,6f,00,6e,00,63,00,61,00,74,00,\\\n"
2954 " 65,00,6e,00,\\;comment\n"
2955 " 61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
2960 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2961 "\"Wine60d\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2962 " 63,00,6f,00,6e,00,63,00,61,00,74,00,\\\n"
2964 " 65,00,6e,00,\\;comment\n"
2965 " 61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
2970 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2971 "\"Wine60e\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2972 " 63,00,6f,00,6e,00,\\\n\n"
2973 " 63,00,61,00,74,00,\\\n\n\n"
2974 " 65,00,6e,00,\\\n\n\n\n"
2975 " 61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
2980 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2981 "\"Wine60f\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2982 " 63,00,6f,00,6e,00,\\\n \n"
2983 " 63,00,61,00,74,00,\\\n\t\n\t\n"
2984 " 65,00,6e,00,\\\n\t \t\n\t \t\n\t \t\n"
2985 " 61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
2990 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2991 "\"Wine61a\"=hex(0):25,48,4f,4d,45,25,5c,/\n"
2992 " 25,50,41,54,48,25,00\n"
2993 "\"Wine61b\"=hex(0):25,48,4f,4d,45,25,5c/\n"
2994 " 25,50,41,54,48,25,00\n\n", &
r);
3000 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3001 "\"Wine62a\"=hex(0):56,61,6c,75,65,\\", &
r);
3005 "got exit code %d, expected 0\n",
err);
3010 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3011 "\"Wine62b\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,\\", &
r);
3015 "got exit code %d, expected 0\n",
err);
3020 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3021 "\"Wine62c\"=hex:11,22,33,44,55,\\", &
r);
3025 "got exit code %d, expected 0\n",
err);
3030 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3031 "\"Wine62d\"=hex(7):4c,00,69,00,6e,00,65,00,\\", &
r);
3035 "got exit code %d, expected 0\n",
err);
3040 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3041 "\"Wine62e\"=hex(100):56,61,6c,75,65,\\", &
r);
3045 "got exit code %d, expected 0\n",
err);
3047 verify_reg(hkey,
"Wine62e", 0x100,
"Value", 5, 0);
3050 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3051 "\"Wine62f\"=hex(7):4c,00,69,00,6e,00,65,00,20,00\\", &
r);
3056 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3057 "\"Wine63a\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\\n"
3058 " ,63,00,6f,00,6e,00,\\\n"
3059 " 63,00,61,00,74,00,\\\n"
3061 " 61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n"
3062 "\"Wine63b\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\\n"
3063 " 63,,00,6f,00,6e,00,\\\n"
3064 " 63,00,61,00,74,00,\\\n"
3066 " 61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
3072 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3073 "\"Wine64a\"=hex(7):4c,00,69,00,6e,00,65,00,00,00,00,00\n"
3074 "\"Wine64b\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\\n"
3075 " 63,00,6f,00,6e,00,63,00,61,00,74,00,\\\n"
3076 " 65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n"
3077 "\"Wine64c\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\;comment\n"
3078 " 63,00,6f,00,6e,00,63,00,61,00,74,00,\\\n"
3079 " 65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n"
3080 "\"Wine64d\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\;comment\n"
3081 " 63,00,6f,00,6e,00,63,00,61,00,74,00,\n"
3082 " 65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n"
3083 "\"Wine64e\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\\n"
3084 " 63,00,6f,00,6e,00,63,00,61,00,74,00,;comment\n"
3085 " 65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
3106 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3107 "\"Wine65a\"=hex(100):25,50,41,54,48,25,00\n"
3108 "\"Wine65b\"=hex(100):25,50,41,\\\n"
3110 "\"Wine65c\"=hex(100):25,50,41,\\;comment\n"
3113 "\"Wine65d\"=hex(100):25,50,41,\\;comment\n"
3116 "\"Wine65e\"=hex(100):25,50,41,\\;comment\n"
3120 verify_reg(hkey,
"Wine65a", 0x100,
"%PATH%", 7, 0);
3121 verify_reg(hkey,
"Wine65b", 0x100,
"%PATH%", 7, 0);
3122 verify_reg(hkey,
"Wine65c", 0x100,
"%PATH%", 7, 0);
3123 verify_reg(hkey,
"Wine65d", 0x100,
"%PATH", 5, 0);
3124 verify_reg(hkey,
"Wine65e", 0x100,
"%PATH", 5, 0);
3128 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3129 "\"Wine66a\"=hex(7):4c,00,69,00,6e,00,65,00\n"
3130 "\"Wine66b\"=hex(7):4c,00,69,00,6e,00,65,00,\n"
3131 "\"Wine66c\"=hex(7):4c,00,69,00,6e,00,65,00,00,00\n"
3132 "\"Wine66d\"=hex(7):4c,00,69,00,6e,00,65,00,00,00,\n"
3133 "\"Wine66e\"=hex(7):4c,00,69,00,6e,00,65,00,00,00,00,00\n"
3134 "\"Wine66f\"=hex(7):4c,00,69,00,6e,00,65,00,00,00,00,00,\n\n", &
r);
3144 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3145 "\"Wine67a\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00\n"
3146 "\"Wine67b\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,\n"
3147 "\"Wine67c\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
3148 "\"Wine67d\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00,\n\n", &
r);
3156 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3157 "\"Wine68a\"=hex(1):\n"
3158 "\"Wine68b\"=hex(2):\n"
3159 "\"Wine68c\"=hex(3):\n"
3160 "\"Wine68d\"=hex(4):\n"
3161 "\"Wine68e\"=hex(7):\n"
3162 "\"Wine68f\"=hex(100):\n"
3163 "\"Wine68g\"=hex(abcd):\n"
3164 "\"Wine68h\"=hex:\n"
3165 "\"Wine68i\"=hex(0):\n\n", &
r);
3179 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3180 "\"Wine69a\"=\"\\\\0\"\n"
3181 "\"Wine69b\"=\"\\\\0\\\\0\"\n"
3182 "\"Wine69c\"=\"Value1\\\\0\"\n"
3183 "\"Wine69d\"=\"Value2\\\\0\\\\0\\\\0\\\\0\"\n"
3184 "\"Wine69e\"=\"Value3\\\\0Value4\"\n"
3185 "\"Wine69f\"=\"\\\\0Value5\"\n\n", &
r);
3195 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3196 "\"Wine70a\"=\"\\0\"\n"
3197 "\"Wine70b\"=\"\\0\\0\"\n"
3198 "\"Wine70c\"=\"Value1\\0\"\n"
3199 "\"Wine70d\"=\"Value2\\0\\0\\0\\0\"\n"
3200 "\"Wine70e\"=\"Value3\\0Value4\"\n"
3201 "\"Wine70f\"=\"\\0Value5\"\n\n", &
r);
3212 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3213 "\"count/up\"=\"one/two/three\"\n"
3214 "\"\\\\foo\\\\bar\"=\"\"\n\n"
3215 "[HKEY_CURRENT_USER\\" KEY_BASE "\\https://winehq.org]\n\n", &
r);
3234 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n\n", &
r);
3240 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3241 "\"Wine1a\"=\"Value\"\n\n", &
r);
3246 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3247 "\"Wine1b\"=\"Value\"\n\n", &
r);
3252 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3253 "\"Wine1c\"=\"Value\"\n\n", &
r);
3258 " [HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3259 "\"Wine2a\"=\"Value\"\n\n", &
r);
3264 "\t[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3265 "\"Wine2b\"=\"Value\"\n\n", &
r);
3270 " \t [HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3271 "\"Wine2c\"=\"Value\"\n\n", &
r);
3276 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3277 " \"Wine3a\"=\"Two leading spaces\"\n\n", &
r);
3282 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3283 "\t\"Wine3b\"=\"One leading tab\"\n\n", &
r);
3288 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3289 " \t \"Wine3c\"=\"Space, tab, space\"\n\n", &
r);
3294 "\t\t\t[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3295 "\t \"Wine4a\"=\"Tab and four spaces\"\n"
3296 " \"Wine4b\"=dword:00112233\n"
3297 "\t \t \t \t \t \t \"Wine4c\"=hex(7):4c,69,6e,65,20,\\\n"
3298 " 63,6f,6e,\\;comment\n"
3299 "\t\t\t\t63,61,74,\\;comment\n"
3300 " \t65,6e,61,74,69,6f,6e,00,00\n\n", &
r);
3308 "\t[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3309 " \"Wine5a\"=\"Leading spaces\"\n"
3310 "\t\t\"Wine5b\"\t\t=\"Leading tabs\"\n"
3311 "\t \"Wine5c\"=\t \"Tabs and spaces\"\n"
3312 " \"Wine5d\" \t = \t \"More whitespace\"\n\n", &
r);
3320 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3321 "\" Wine6a\"=\"Leading spaces\"\n"
3322 "\"\t\tWine6b\"=\"Leading tabs\"\n"
3323 " \" Wine6c \" = \" Spaces everywhere \" \n\n", &
r);
3330 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3331 "\"Wine7a\"=\" Four spaces in the data\"\n"
3332 "\"Wine7b\"=\"\t\tTwo tabs in the data\"\n\n", &
r);
3338 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3339 "\"Wine8a\"=\"Trailing spaces\" \n"
3340 "\"Wine8b\"=\"Trailing tabs and spaces\"\t \t\n\n", &
r);
3346 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3347 "\"Wine9a\"=dword: 00000008\n"
3348 "\"Wine9b\"=dword:\t\t00000008\n\n", &
r);
3355 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3356 "@ = \"Test Value\"\n\n", &
r);
3361 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3362 "\t@\t=\tdword:\t00000008\t\n\n", &
r);
3379 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n\n", &
r);
3385 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3386 "\"Wine1a\"=\"Value\"\n\n", &
r);
3391 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3392 "\"Wine1b\"=\"Value\"\n\n", &
r);
3396 test_import_wstr(
"\xef\xbb\xbf \t Windows Registry Editor Version 5.00\n\n"
3397 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3398 "\"Wine1c\"=\"Value\"\n\n", &
r);
3403 " [HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3404 "\"Wine2a\"=\"Value\"\n\n", &
r);
3409 "\t[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3410 "\"Wine2b\"=\"Value\"\n\n", &
r);
3415 " \t [HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3416 "\"Wine2c\"=\"Value\"\n\n", &
r);
3421 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3422 " \"Wine3a\"=\"Two leading spaces\"\n\n", &
r);
3427 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3428 "\t\"Wine3b\"=\"One leading tab\"\n\n", &
r);
3433 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3434 " \t \"Wine3c\"=\"Space, tab, space\"\n\n", &
r);
3439 "\t\t\t[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3440 "\t \"Wine4a\"=\"Tab and four spaces\"\n"
3441 " \"Wine4b\"=dword:00112233\n"
3442 "\t \t \t \t \t \t \"Wine4c\"=hex(7):4c,00,69,00,6e,00,65,00,20,00,\\\n"
3443 " 63,00,6f,00,6e,00,\\;comment\n"
3444 "\t\t\t\t63,00,61,00,74,00,\\;comment\n"
3445 " \t65,00,6e,00,61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
3453 "\t[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3454 " \"Wine5a\"=\"Leading spaces\"\n"
3455 "\t\t\"Wine5b\"\t\t=\"Leading tabs\"\n"
3456 "\t \"Wine5c\"=\t \"Tabs and spaces\"\n"
3457 " \"Wine5d\" \t = \t \"More whitespace\"\n\n", &
r);
3465 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3466 "\" Wine6a\"=\"Leading spaces\"\n"
3467 "\"\t\tWine6b\"=\"Leading tabs\"\n"
3468 " \" Wine6c \" = \" Spaces everywhere \" \n\n", &
r);
3475 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3476 "\"Wine7a\"=\" Four spaces in the data\"\n"
3477 "\"Wine7b\"=\"\t\tTwo tabs in the data\"\n\n", &
r);
3483 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3484 "\"Wine8a\"=\"Trailing spaces\" \n"
3485 "\"Wine8b\"=\"Trailing tabs and spaces\"\t \t\n\n", &
r);
3491 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3492 "\"Wine9a\"=dword: 00000008\n"
3493 "\"Wine9b\"=dword:\t\t00000008\n\n", &
r);
3500 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3501 "@ = \"Test Value\"\n\n", &
r);
3506 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3507 "\t@\t=\tdword:\t00000008\t\n\n", &
r);
3524 win_skip(
"reg.exe is not running with elevated privileges; "
3525 "skipping Windows 3.1 import tests\n");
3531 "HKEY_CLASSES_ROOT\\" KEY_BASE " = Value0\r\n", &
r);
3538 "HKEY_CLASSES_ROOT\\" KEY_BASE " =Value1\r\n", &
r);
3543 "HKEY_CLASSES_ROOT\\" KEY_BASE " = Value2\r\n", &
r);
3548 "HKEY_CLASSES_ROOT\\" KEY_BASE " = Value3 \r\n", &
r);
3553 "HKEY_CLASSES_ROOT\\" KEY_BASE " Value4\r\n", &
r);
3558 "HKEY_CLASSES_ROOT\\" KEY_BASE " Value5\r\n", &
r);
3563 "HKEY_CLASSES_ROOT\\" KEY_BASE "\r\n", &
r);
3568 "HKEY_CLASSES_ROOT\\" KEY_BASE " \r\n", &
r);
3573 "HKEY_CLASSES_ROOT\\" KEY_BASE " = No newline", &
r);
3581 " HKEY_CLASSES_ROOT\\" KEY_BASE " = Value1a\r\n", &
r);
3586 " HKEY_CLASSES_ROOT\\" KEY_BASE " = Value1b\r\n", &
r);
3591 "\tHKEY_CLASSES_ROOT\\" KEY_BASE " = Value1c\r\n", &
r);
3596 ";HKEY_CLASSES_ROOT\\" KEY_BASE " = Value2a\r\n", &
r);
3601 "#HKEY_CLASSES_ROOT\\" KEY_BASE " = Value2b\r\n", &
r);
3607 "hkey_classes_root\\" KEY_BASE " = Value3a\r\n", &
r);
3612 "hKEY_CLASSES_ROOT\\" KEY_BASE " = Value3b\r\n", &
r);
3617 "Hkey_Classes_Root\\" KEY_BASE " = Value3c\r\n", &
r);
3627static BOOL write_test_files(
void)
3632 test1 =
"REGEDIT4\n\n"
3633 "[HKEY_LOCAL_MACHINE\\" KEY_BASE "]\n"
3634 "\"Wine1\"=dword:00000123\n\n"
3635 "\"Wine2\"=\"Test Value\"\n"
3636 "\"Wine3\"=hex(7):4c,69,6e,65,20,\\\n"
3637 " 63,6f,6e,63,61,74,65,6e,61,74,69,6f,6e,00,00\n"
3641 "\"Wine4\"=hex(2):25,50,41,54,48,25,00\n\n";
3643 test2 =
"\xef\xbb\xbfWindows Registry Editor Version 5.00\n\n"
3644 "[HKEY_LOCAL_MACHINE\\" KEY_BASE "\\subkey]\n"
3645 "\"Empty string\"=\"\"\n"
3646 "\"\"=\"Default registry value\"\n\n";
3654static void test_registry_view_win32(
void)
3661 is_win32 = !
is_wow64 && (
sizeof(
void *) ==
sizeof(
int));
3663 if (!is_win32)
return;
3665 if (!write_test_files())
return;
3718static void test_registry_view_win64(
void)
3729 if (!write_test_files())
return;
3786static void test_registry_view_wow64(
void)
3796 if (!write_test_files())
return;
3859 win_skip(
"reg.exe not available, skipping 'import' tests\n");
3873 win_skip(
"reg.exe is not running with elevated privileges; "
3874 "skipping registry view tests\n");
3879 test_registry_view_win32();
3880 test_registry_view_win64();
3881 test_registry_view_wow64();
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
ACPI_SIZE strlen(const char *String)
#define RegCloseKey(hKey)
LONG WINAPI RegQueryValueExA(_In_ HKEY hkeyorg, _In_ LPCSTR name, _In_ LPDWORD reserved, _Out_opt_ LPDWORD type, _Out_opt_ LPBYTE data, _Inout_opt_ LPDWORD count)
LONG WINAPI RegCreateKeyExA(_In_ HKEY hKey, _In_ LPCSTR lpSubKey, _In_ DWORD Reserved, _In_ LPSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_ LPDWORD lpdwDisposition)
LONG WINAPI RegDeleteKeyA(_In_ HKEY hKey, _In_ LPCSTR lpSubKey)
#define INVALID_HANDLE_VALUE
#define CreateFileA(a, b, c, d, e, f, g)
#define GetCurrentProcess()
#define HeapFree(x, y, z)
#define FILE_ATTRIBUTE_NORMAL
#define MultiByteToWideChar
#define ERROR_ACCESS_DENIED
BOOL WINAPI DeleteFileA(IN LPCSTR lpFileName)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
static const BOOL is_win64
GLuint GLuint GLsizei GLenum type
GLdouble GLdouble GLdouble r
#define ERROR_FILE_NOT_FOUND
static void test_import(void)
static BOOL write_reg_file(const char *fname, const char *contents, BOOL unicode)
static BOOL write_file(const char *fname, const void *str, DWORD size)
BOOL is_elevated_process(void)
static void test_import_win31(void)
static void test_unicode_import_with_whitespace(void)
BOOL delete_file_(const char *file, unsigned line, const char *fname)
static void test_import_with_whitespace(void)
BOOL import_reg(const char *file, unsigned line, const char *contents, BOOL unicode, DWORD *rc)
static void test_unicode_import(void)
static void test_command_syntax(void)
static const char * contents
#define REG_OPTION_NON_VOLATILE
#define test_import_str(c, r)
#define test_import_wstr(c, r)
#define verify_reg(k, v, t, d, s, todo)
#define delete_tree(r, p, s)
#define open_key(r, p, s, k)
#define delete_value(k, n)
#define verify_key(r, p, s)
#define verify_key_nonexist(r, p, s)
#define run_reg_exe(c, r)
#define delete_key(r, p, s)
#define verify_reg_nonexist(k, v)
DWORD WINAPI GetLastError(void)
#define HKEY_LOCAL_MACHINE
#define HKEY_CURRENT_USER
#define HKEY_CLASSES_ROOT