1679{
1685
1687
1690 "got exit code %d, expected 1\n",
r);
1691
1694 "got exit code %d, expected 1\n",
r);
1695
1698
1701
1704
1707
1710
1713
1716 "got exit code %d, expected 1\n",
r);
1717
1719 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n", &
r);
1721
1723
1725 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1726 "\"Test1\"=\"Value\"\n", &
r);
1729
1731 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1732 "\"Test2\"=\"Value\"\n", &
r);
1734 "got exit code %d, expected 1\n",
r);
1736
1738 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1739 "\"Test3\"=\"Value\"\n", &
r);
1741 "got exit code %d, expected 1\n",
r);
1743
1745 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1746 "\"Test4\"=\"Value\"\n", &
r);
1749
1751 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1752 "\"Test5\"=\"Value\"\n", &
r);
1755
1757 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1758 "\"Test6\"=\"Value\"\n", &
r);
1761
1763 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1764 "\"Test7\"=\"Value\"\n", &
r);
1767
1769 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1770 "\"Test8\"=\"Value\"\n", &
r);
1773
1775 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1776 "\"Unicode1\"=\"Value1\"\n", &
r);
1779
1781 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1782 "\"Unicode2\"=\"Value2\"\n\n", &
r);
1785
1787 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1788 "\"Unicode3\"=\"Value3\"\n\n", &
r);
1791
1794 "got exit code %d, expected 1\n",
r);
1795
1798 "got exit code %d, expected 1\n",
r);
1799
1802 "got exit code %d, expected 1\n",
r);
1803
1806
1809
1812 "got exit code %d, expected 1\n",
r);
1813
1816
1819
1822 "got exit code %d, expected 1\n",
r);
1823
1825 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1826 "\"Test9\"=\"Value\"\n", &
r);
1828 "got exit code %d, expected 1\n",
r);
1830
1832 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1833 "\"Test10\"=\"Value\"\n", &
r);
1835 "got exit code %d, expected 1\n",
r);
1837
1839 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1840 "\"Test11\"=\"Value\"\n", &
r);
1842 "got exit code %d, expected 1\n",
r);
1844
1846 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1847 "\"Test12\"=\"Value\"\n", &
r);
1849 "got exit code %d, expected 1\n",
r);
1851
1853 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1854 "\"Wine\"=dword:00000123\n\n", &
r);
1857
1859 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1860 "@=\"Test string\"\n\n", &
r);
1863
1865 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1866 "\"Unicode4\"=\"Value4\"\n", &
r);
1869
1871 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1872 "\"Unicode5\"=\"Value5\"\n\n", &
r);
1875
1877 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1878 "\"Unicode6\"=\"Value6\"\n\n", &
r);
1881
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);
1893
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"
1900 "#comment\n"
1901 "@=\"Test\"\n"
1902 ";comment\n\n"
1903 "\"Wine4\"=dword:12345678\n\n", &
r);
1905 dword = 0x782;
1910 dword = 0x12345678;
1912
1914 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1915 "\"Wine5\"=\"No newline\"", &
r);
1919 "got exit code %d, expected 0\n",
err);
1922
1924 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1925 "\"Wine6\"=dword:00000050\n\n"
1926 "\"Wine7\"=\"No newline\"", &
r);
1928 dword = 0x50;
1932 "got exit code %d, expected 0\n",
err);
1935
1937 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
1938 "#comment\\\n"
1939 "\"Wine8\"=\"Line 1\"\n"
1940 ";comment\\\n"
1941 "\"Wine9\"=\"Line 2\"\n\n", &
r);
1945
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);
1956 dword = 0x2040608;
1958
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"
1962 " #comment\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"
1966 " ;comment\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);
1974
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);
1992
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);
2019 dword = 0x00000004;
2021
2023 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2024 "\"Wine32a\"=dword:1\n"
2025 "\"Wine32b\"=dword:4444\n\n", &
r);
2027 dword = 0x1;
2029 dword = 0x4444;
2031
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);
2045
2047 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2048 "\"Wine34a\"=dword:12345678abc\n"
2049 "\"Wine34b\"=dword:12345678 abc\n\n", &
r);
2053
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);
2063
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);
2071 dword = 0x1234;
2076
2078 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2079 "\"Wine37a\"=\"foo\"bar\"\n"
2080 "\"Wine37b\"=\"foo\"\"bar\"\n\n", &
r);
2084
2086 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2087 "\"Empty string\"=\"\"\n"
2088 "\"\"=\"Default registry value\"\n\n", &
r);
2092
2094 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2095 "\"Test38a\"=\n"
2096 "\"Test38b\"=\\\"\n"
2097 "\"Test38c\"=\\\"Value\\\"\n"
2098 "\"Test38d\"=\\\"Value\"\n\n", &
r);
2104
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);
2116
2118 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2119 "\"TestNoBeginQuote\"=Asdffdsa\"\n", &
r);
2122
2124 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2125 "\"TestNoEndQuote\"=\"Asdffdsa\n", &
r);
2128
2130 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2131 "\"TestNoQuotes\"=Asdffdsa\n", &
r);
2134
2136 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2137 "NameNoBeginQuote\"=\"Asdffdsa\"\n", &
r);
2140
2142 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2143 "\"NameNoEndQuote=\"Asdffdsa\"\n", &
r);
2146
2148 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2149 "NameNoQuotes=\"Asdffdsa\"\n", &
r);
2152
2154 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2155 "\"MixedQuotes=Asdffdsa\"\n", &
r);
2159
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);
2177
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);
2186
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);
2195
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);
2202
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);
2209
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);
2216
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);
2223
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);
2233
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);
2243
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);
2253
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);
2263
2265 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2266 "\"Wine41a\"=dword:1234\\\n"
2267 "5678\n"
2268 "\"Wine41b\"=\"Test \\\n"
2273
2275 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2276 "\"double\\\"quote\"=\"valid \\\"or\\\" not\"\n"
2277 "\"single'quote\"=dword:00000008\n\n", &
r);
2280 dword = 0x00000008;
2282
2283
2285 "[HKEY_CURRENT_USER\\" KEY_BASE "\\\n"
2289
2291 "[HKEY_CURRENT_USER\\" KEY_BASE "\n"
2292 "\\Subkey2]\n", &
r);
2295
2297 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2298 "\"Wine\\\n"
2299 "42a\"=\"Value 1\"\n"
2300 "\"Wine42b\"=\"Value 2\"\n"
2301 "\"Wine\n"
2302 "\\42c\"=\"Value 3\"\n\n", &
r);
2307
2308
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"
2325 " 6c,00,75,00,\\\n"
2326 " 65,00,00,00\n"
2327 "\"Wine43i\"=hex(0):56,00,61,00,\\;comment\n"
2328 " 6c,00,75,00,\n"
2329 " 65,00,00,00\n"
2330 "\"Wine43j\"=hex(0):56,00,61,00,\\;comment\n"
2331 " 6c,00,75,00,;comment\n"
2332 " 65,00,00,00\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);
2348
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"
2365 " 54,00,48,00,\\\n"
2366 " 25,00,00,00\n"
2367 "\"Wine44i\"=hex(2):25,00,50,00,41,00,\\;comment\n"
2368 " 54,00,48,00\n"
2369 " 25,00,00,00\n"
2370 "\"Wine44j\"=hex(2):25,00,50,00,41,00,\\;comment\n"
2371 " 54,00,48,00;comment\n"
2372 " 25,00,00,00\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);
2385
2392
2400
2402
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"
2407 " 55,66,77,88\n"
2408 "\"Wine45c\"=hex:11,22,33,44\\\n"
2409 ",55,66,77,88\n"
2410 "\"Wine45d\"=hex:11,22,33,44\\\n"
2411 " ,55,66,77,88\n"
2412 "\"Wine45e\"=hex:11,22,33,44\\\n"
2413 " 55,66,77,88\n"
2414 "\"Wine45f\"=hex:11,22,33,4\\\n"
2415 "4,55,66,77,88\n"
2416 "\"Wine45g\"=hex:11,22,33,4\\\n"
2417 " 4,55,66,77,88\n"
2418 "\"Wine45h\"=hex:11,22,33,44,\\;comment\n"
2419 " 55,66,\\\n"
2420 " 77,88\n"
2421 "\"Wine45i\"=hex:11,22,33,44,\\;comment\n"
2422 " 55,66,\n"
2423 " 77,88\n"
2424 "\"Wine45j\"=hex:11,22,33,44,\\;comment\n"
2425 " 55,66,;comment\n"
2426 " 77,88\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;
2444
2445
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);
2454
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);
2463
2464
2466 "HKEY_CURRENT_USER\\" KEY_BASE "\\No_Opening_Bracket]\n", &
r);
2469
2471 "[HKEY_CURRENT_USER\\" KEY_BASE "\\No_Closing_Bracket\n", &
r);
2474
2476 "[ HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1a]\n", &
r);
2479
2481 "[\tHKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1b]\n", &
r);
2484
2486 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1c ]\n", &
r);
2490
2492 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1d\t]\n", &
r);
2496
2498 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1e\\]\n"
2499 "\"Wine\"=\"Test value\"\n\n", &
r);
2503 open_key(hkey,
"Subkey1e", 0, &subkey);
2507
2509 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1f\\\\]\n"
2510 "\"Wine\"=\"Test value\"\n\n", &
r);
2515 open_key(hkey,
"Subkey1f\\\\", 0, &subkey);
2519
2521 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1g\\\\\\\\]\n"
2522 "\"Wine\"=\"Test value\"\n\n", &
r);
2528 open_key(hkey,
"Subkey1g\\\\", 0, &subkey);
2532
2533
2535 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2a]\n\n"
2536 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2b]\n\n", &
r);
2540
2542 "[ -HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2a]\n", &
r);
2545
2547 "[\t-HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2b]\n", &
r);
2550
2552 "[- HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2a]\n", &
r);
2555
2557 "[-\tHKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2b]\n", &
r);
2560
2562 "[-HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2a]\n\n"
2563 "[-HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2b]\n\n", &
r);
2567
2568
2570 "[hkey_CURRENT_user\\" KEY_BASE "\\Subkey3a]\n\n"
2571 "[HkEy_CuRrEnT_uSeR\\" KEY_BASE "\\SuBkEy3b]\n\n", &
r);
2575
2577 "[-HKEY_current_USER\\" KEY_BASE "\\sUBKEY3A]\n\n"
2578 "[-hKeY_cUrReNt_UsEr\\" KEY_BASE "\\sUbKeY3B]\n\n", &
r);
2582
2583
2585 "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey4a]\n\n", &
r);
2588
2590 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n\n"
2591 "[-HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey4a]\n"
2592 "\"Wine46a\"=dword:12345678\n\n", &
r);
2596
2598 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n\n"
2599 "[HKEY_CURRENT_USERS\\" KEY_BASE "\\Subkey4b]\n"
2600 "\"Wine46b\"=dword:12345678\n\n", &
r);
2604
2605
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);
2623
2625 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2626 "\"Wine46a\"=-\n"
2627 "\"Wine46b\"= -\n"
2628 "\"Wine46c\"= \t-\t \n"
2629 "\"Wine46d\"=-\"Test\"\n"
2630 "\"Wine46e\"=- ;comment\n"
2631 "\"Wine46f\"=- #comment\n\n", &
r);
2639
2640
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);
2668
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);
2680
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);
2686
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);
2698
2699
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);
2707
2708
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);
2740
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);
2762
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);
2770
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);
2778
2780
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"
2785
2786 "\"Wine55c\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2787 ";comment\n"
2788 "\"Wine55d\"=\"Test value\"\n"
2789
2790 "\"Wine55e\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2791 "#comment\n"
2792 "\"Wine55f\"=\"Test value\"\n"
2793
2794 "\"Wine55g\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n\n"
2795 "\"Wine55h\"=\"Test value\"\n"
2796
2797 "\"Wine55i\"=hex(2):4c,00,69,00,6e,00,65,00,20,00\\\n"
2798 "\"Wine55j\"=\"Test value\"\n\n", &
r);
2810
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"
2815
2816 "\"Wine56c\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2817 ";comment\n"
2818 "\"Wine56d\"=dword:00000008\n"
2819
2820 "\"Wine56e\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2821 "#comment\n"
2822 "\"Wine56f\"=dword:00000008\n"
2823
2824 "\"Wine56g\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n\n"
2825 "\"Wine56h\"=dword:00000008\n"
2826
2827 "\"Wine56i\"=hex(2):4c,00,69,00,6e,00,65,00,20,00\\\n"
2828 "\"Wine56j\"=dword:00000008\n\n", &
r);
2840
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"
2845
2846 "\"Wine57c\"=hex(2):25,00,48,00,4f,00,4d,00,45,00,25,00,5c,00,\\\n"
2847 ";comment\n"
2848 "\"Wine57d\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
2849
2850 "\"Wine57e\"=hex(2):25,00,48,00,4f,00,4d,00,45,00,25,00,5c,00,\\\n"
2851 "#comment\n"
2852 "\"Wine57f\"=hex(2):25,00,50,00,41,00,54,00,48,00,25,00,00,00\n"
2853
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"
2856
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);
2870
2872
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);
2880
2882 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2883 "\"Wine58b\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2884 ";comment\n"
2885 "@=\"Default value 2\"\n\n", &
r);
2889
2891 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2892 "\"Wine58c\"=hex(2):4c,00,69,00,6e,00,65,00,20,00,\\\n"
2893 "#comment\n"
2894 "@=\"Default value 3\"\n\n", &
r);
2898
2900
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);
2908
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);
2916
2918 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
2919 "\"Wine59a\"=hex:11,22,33,\\\n"
2920 "\\\n"
2921 " 44,55,66\n"
2922 "\"Wine59b\"=hex:11,22,33,\\\n"
2923 " \\\n"
2924 " 44,55,66\n\n", &
r);
2928
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"
2933 ";comment\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);
2938
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"
2943 " ;comment\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);
2948
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"
2953 "#comment\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);
2958
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"
2963 " #comment\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);
2968
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);
2978
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);
2988
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);
2998
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);
3008
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);
3018
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);
3028
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);
3038
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);
3048
3050 "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
3051 "\"Wine62f\"=hex(7):4c,00,69,00,6e,00,65,00,20,00\\", &
r);
3054
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"
3060 " 65,00,6e,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"
3065 " 65,00,6e,00,\\\n"
3066 " 61,00,74,00,69,00,6f,00,6e,00,00,00,00,00\n\n", &
r);
3070
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);
3090
3097
3104
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"
3109 " 54,48,25,00\n"
3110 "\"Wine65c\"=hex(100):25,50,41,\\;comment\n"
3111 " 54,48,\\\n"
3112 " 25,00\n"
3113 "\"Wine65d\"=hex(100):25,50,41,\\;comment\n"
3114 " 54,48,\n"
3115 " 25,00\n"
3116 "\"Wine65e\"=hex(100):25,50,41,\\;comment\n"
3117 " 54,48,;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);
3125
3126
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);
3142
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);
3154
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);
3176
3177
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);
3193
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);
3209
3210
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);
3220
3222
3224}
#define test_import_wstr(c, r)