@@ -2137,17 +2137,17 @@ static void test_condition(void)
2137
2137
DeleteFileA (msifile );
2138
2138
}
2139
2139
2140
- static void check_prop (MSIHANDLE hpkg , const char * prop , const char * expect , int match_case )
2140
+ static void check_prop (MSIHANDLE hpkg , const char * prop , const char * expect , int match_case , int todo_value )
2141
2141
{
2142
2142
char buffer [MAX_PATH ] = "x" ;
2143
2143
DWORD sz = sizeof (buffer );
2144
2144
UINT r = MsiGetPropertyA (hpkg , prop , buffer , & sz );
2145
2145
ok (!r , "'%s': got %u\n" , prop , r );
2146
2146
ok (sz == lstrlenA (buffer ), "'%s': expected %u, got %lu\n" , prop , lstrlenA (buffer ), sz );
2147
2147
if (match_case )
2148
- ok (!strcmp (buffer , expect ), "'%s': expected '%s', got '%s'\n" , prop , expect , buffer );
2148
+ todo_wine_if ( todo_value ) ok (!strcmp (buffer , expect ), "'%s': expected '%s', got '%s'\n" , prop , expect , buffer );
2149
2149
else
2150
- ok (!_stricmp (buffer , expect ), "'%s': expected '%s', got '%s'\n" , prop , expect , buffer );
2150
+ todo_wine_if ( todo_value ) ok (!_stricmp (buffer , expect ), "'%s': expected '%s', got '%s'\n" , prop , expect , buffer );
2151
2151
}
2152
2152
2153
2153
static void test_props (void )
@@ -2220,29 +2220,29 @@ static void test_props(void)
2220
2220
2221
2221
r = MsiSetPropertyA ( hpkg , "=" , "asdf" );
2222
2222
ok (!r , "got %u\n" , r );
2223
- check_prop (hpkg , "=" , "asdf" , 1 );
2223
+ check_prop (hpkg , "=" , "asdf" , 1 , 0 );
2224
2224
2225
2225
r = MsiSetPropertyA ( hpkg , " " , "asdf" );
2226
2226
ok (!r , "got %u\n" , r );
2227
- check_prop (hpkg , " " , "asdf" , 1 );
2227
+ check_prop (hpkg , " " , "asdf" , 1 , 0 );
2228
2228
2229
2229
r = MsiSetPropertyA ( hpkg , "'" , "asdf" );
2230
2230
ok (!r , "got %u\n" , r );
2231
- check_prop (hpkg , "'" , "asdf" , 1 );
2231
+ check_prop (hpkg , "'" , "asdf" , 1 , 0 );
2232
2232
2233
2233
/* set empty values */
2234
2234
r = MsiSetPropertyA ( hpkg , "boo" , NULL );
2235
2235
ok (!r , "got %u\n" , r );
2236
- check_prop (hpkg , "boo" , "" , 1 );
2236
+ check_prop (hpkg , "boo" , "" , 1 , 0 );
2237
2237
2238
2238
r = MsiSetPropertyA ( hpkg , "boo" , "" );
2239
2239
ok (!r , "got %u\n" , r );
2240
- check_prop (hpkg , "boo" , "" , 1 );
2240
+ check_prop (hpkg , "boo" , "" , 1 , 0 );
2241
2241
2242
2242
/* set a non-empty value */
2243
2243
r = MsiSetPropertyA ( hpkg , "boo" , "xyz" );
2244
2244
ok (!r , "got %u\n" , r );
2245
- check_prop (hpkg , "boo" , "xyz" , 1 );
2245
+ check_prop (hpkg , "boo" , "xyz" , 1 , 0 );
2246
2246
2247
2247
r = MsiGetPropertyA (hpkg , "boo" , NULL , NULL );
2248
2248
ok (!r , "got %u\n" , r );
@@ -2317,10 +2317,10 @@ static void test_props(void)
2317
2317
ok (sz == 3 , "got size %lu\n" , sz );
2318
2318
2319
2319
/* properties are case-sensitive */
2320
- check_prop (hpkg , "BOO" , "" , 1 );
2320
+ check_prop (hpkg , "BOO" , "" , 1 , 0 );
2321
2321
2322
2322
/* properties set in Property table should work */
2323
- check_prop (hpkg , "MetadataCompName" , "Photoshop.dll" , 1 );
2323
+ check_prop (hpkg , "MetadataCompName" , "Photoshop.dll" , 1 , 0 );
2324
2324
2325
2325
MsiCloseHandle ( hpkg );
2326
2326
DeleteFileA (msifile );
@@ -5734,70 +5734,70 @@ static void test_installprops(void)
5734
5734
GetNativeSystemInfo (& si );
5735
5735
5736
5736
sprintf (buf , "%d" , LOBYTE (LOWORD (GetVersion ())) * 100 + HIBYTE (LOWORD (GetVersion ())));
5737
- check_prop (hpkg , "VersionNT" , buf , 1 );
5737
+ check_prop (hpkg , "VersionNT" , buf , 1 , 1 );
5738
5738
5739
5739
if (S (U (si )).wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 )
5740
5740
{
5741
5741
sprintf (buf , "%d" , si .wProcessorLevel );
5742
- check_prop (hpkg , "Intel" , buf , 1 );
5743
- check_prop (hpkg , "MsiAMD64" , buf , 1 );
5744
- check_prop (hpkg , "Msix64" , buf , 1 );
5742
+ check_prop (hpkg , "Intel" , buf , 1 , 0 );
5743
+ check_prop (hpkg , "MsiAMD64" , buf , 1 , 0 );
5744
+ check_prop (hpkg , "Msix64" , buf , 1 , 0 );
5745
5745
sprintf (buf , "%d" , LOBYTE (LOWORD (GetVersion ())) * 100 + HIBYTE (LOWORD (GetVersion ())));
5746
- check_prop (hpkg , "VersionNT64" , buf , 1 );
5746
+ check_prop (hpkg , "VersionNT64" , buf , 1 , 1 );
5747
5747
5748
5748
GetSystemDirectoryA (path , MAX_PATH );
5749
5749
strcat (path , "\\" );
5750
- check_prop (hpkg , "System64Folder" , path , 0 );
5750
+ check_prop (hpkg , "System64Folder" , path , 0 , 0 );
5751
5751
5752
5752
GetSystemWow64DirectoryA (path , MAX_PATH );
5753
5753
strcat (path , "\\" );
5754
- check_prop (hpkg , "SystemFolder" , path , 0 );
5754
+ check_prop (hpkg , "SystemFolder" , path , 0 , 0 );
5755
5755
5756
5756
size = MAX_PATH ;
5757
5757
r = RegQueryValueExA (pathkey , "ProgramFilesDir (x86)" , 0 , & type , (BYTE * )path , & size );
5758
5758
strcat (path , "\\" );
5759
- check_prop (hpkg , "ProgramFilesFolder" , path , 0 );
5759
+ check_prop (hpkg , "ProgramFilesFolder" , path , 0 , 0 );
5760
5760
5761
5761
size = MAX_PATH ;
5762
5762
RegQueryValueExA (pathkey , "ProgramFilesDir" , 0 , & type , (BYTE * )path , & size );
5763
5763
strcat (path , "\\" );
5764
- check_prop (hpkg , "ProgramFiles64Folder" , path , 0 );
5764
+ check_prop (hpkg , "ProgramFiles64Folder" , path , 0 , 0 );
5765
5765
5766
5766
size = MAX_PATH ;
5767
5767
RegQueryValueExA (pathkey , "CommonFilesDir (x86)" , 0 , & type , (BYTE * )path , & size );
5768
5768
strcat (path , "\\" );
5769
- check_prop (hpkg , "CommonFilesFolder" , path , 0 );
5769
+ check_prop (hpkg , "CommonFilesFolder" , path , 0 , 0 );
5770
5770
5771
5771
size = MAX_PATH ;
5772
5772
RegQueryValueExA (pathkey , "CommonFilesDir" , 0 , & type , (BYTE * )path , & size );
5773
5773
strcat (path , "\\" );
5774
- check_prop (hpkg , "CommonFiles64Folder" , path , 0 );
5774
+ check_prop (hpkg , "CommonFiles64Folder" , path , 0 , 0 );
5775
5775
}
5776
5776
else if (S (U (si )).wProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL )
5777
5777
{
5778
5778
sprintf (buf , "%d" , si .wProcessorLevel );
5779
- check_prop (hpkg , "Intel" , buf , 1 );
5779
+ check_prop (hpkg , "Intel" , buf , 1 , 0 );
5780
5780
5781
5781
GetSystemDirectoryA (path , MAX_PATH );
5782
5782
strcat (path , "\\" );
5783
- check_prop (hpkg , "SystemFolder" , path , 0 );
5783
+ check_prop (hpkg , "SystemFolder" , path , 0 , 0 );
5784
5784
5785
5785
size = MAX_PATH ;
5786
5786
RegQueryValueExA (pathkey , "ProgramFilesDir" , 0 , & type , (BYTE * )path , & size );
5787
5787
strcat (path , "\\" );
5788
- check_prop (hpkg , "ProgramFilesFolder" , path , 0 );
5788
+ check_prop (hpkg , "ProgramFilesFolder" , path , 0 , 0 );
5789
5789
5790
5790
size = MAX_PATH ;
5791
5791
RegQueryValueExA (pathkey , "CommonFilesDir" , 0 , & type , (BYTE * )path , & size );
5792
5792
strcat (path , "\\" );
5793
- check_prop (hpkg , "CommonFilesFolder" , path , 0 );
5794
-
5795
- check_prop (hpkg , "MsiAMD64" , "" , 1 );
5796
- check_prop (hpkg , "Msix64" , "" , 1 );
5797
- check_prop (hpkg , "VersionNT64" , "" , 1 );
5798
- check_prop (hpkg , "System64Folder" , "" , 0 );
5799
- check_prop (hpkg , "ProgramFiles64Dir" , "" , 0 );
5800
- check_prop (hpkg , "CommonFiles64Dir" , "" , 0 );
5793
+ check_prop (hpkg , "CommonFilesFolder" , path , 0 , 0 );
5794
+
5795
+ check_prop (hpkg , "MsiAMD64" , "" , 1 , 0 );
5796
+ check_prop (hpkg , "Msix64" , "" , 1 , 0 );
5797
+ check_prop (hpkg , "VersionNT64" , "" , 1 , 0 );
5798
+ check_prop (hpkg , "System64Folder" , "" , 0 , 0 );
5799
+ check_prop (hpkg , "ProgramFiles64Dir" , "" , 0 , 0 );
5800
+ check_prop (hpkg , "CommonFiles64Dir" , "" , 0 , 0 );
5801
5801
}
5802
5802
5803
5803
CloseHandle (hkey1 );
0 commit comments