{
const WCHAR* ShimName;
DWORD MinVersion;
- expect_shim_hook hooks[4];
+ expect_shim_hook hooks[6];
} expect_shim_data;
static expect_shim_data data[] =
{
+ {
+ L"ForceDXSetupSuccess",
+ 0,
+ {
+ { "KERNEL32.DLL", "LoadLibraryA" },
+ { "KERNEL32.DLL", "LoadLibraryW" },
+ { "KERNEL32.DLL", "LoadLibraryExA" },
+ { "KERNEL32.DLL", "LoadLibraryExW" },
+ { "KERNEL32.DLL", "GetProcAddress" },
+ { "KERNEL32.DLL", "FreeLibrary" },
+ }
+ },
{
L"VerifyVersionInfoLite",
0,
{ "KERNEL32.DLL", "VerifyVersionInfoW" },
}
},
+ /* Show that it is not case sensitive */
+ {
+ L"VeRiFyVeRsIoNInFoLiTe",
+ 0,
+ {
+ { "KERNEL32.DLL", "VerifyVersionInfoA" },
+ { "KERNEL32.DLL", "VerifyVersionInfoW" },
+ }
+ },
};
static DWORD count_shims(expect_shim_data* data)
return ptr;
index ^= 1;
- StringCchPrintfA(buffer[index], _countof(buffer[index]), "#%d", (int)ptr);
+ StringCchPrintfA(buffer[index], _countof(buffer[index]), "#%Id", (intptr_t)ptr);
return buffer[index];
}