mirror of
https://github.com/reactos/reactos.git
synced 2025-07-01 04:11:21 +00:00
[ROSAUTOTEST][SDK] ROS detection for apitests (#7613)
This commit is contained in:
parent
4965d6a8ac
commit
32fad87a08
2 changed files with 4 additions and 4 deletions
|
@ -6,6 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "precomp.h"
|
#include "precomp.h"
|
||||||
|
#include <versionhelpers.h>
|
||||||
|
|
||||||
#define CONFIGURATION_FILENAMEA "rosautotest.ini"
|
#define CONFIGURATION_FILENAMEA "rosautotest.ini"
|
||||||
#define CONFIGURATION_FILENAMEW L"rosautotest.ini"
|
#define CONFIGURATION_FILENAMEW L"rosautotest.ini"
|
||||||
|
@ -32,6 +33,7 @@ CConfiguration::CConfiguration()
|
||||||
FATAL("GetWindowsDirectoryW failed\n");
|
FATAL("GetWindowsDirectoryW failed\n");
|
||||||
|
|
||||||
m_IsReactOS = !_wcsnicmp(&WindowsDirectory[3], L"reactos", 7);
|
m_IsReactOS = !_wcsnicmp(&WindowsDirectory[3], L"reactos", 7);
|
||||||
|
m_IsReactOS = m_IsReactOS || IsReactOS();
|
||||||
|
|
||||||
if(GetEnvironmentVariableW(L"WINETEST_INTERACTIVE", Interactive, _countof(Interactive)))
|
if(GetEnvironmentVariableW(L"WINETEST_INTERACTIVE", Interactive, _countof(Interactive)))
|
||||||
m_IsInteractive = _wtoi(Interactive);
|
m_IsInteractive = _wtoi(Interactive);
|
||||||
|
|
|
@ -145,12 +145,10 @@ IsActiveSessionCountLimited()
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __REACTOS__
|
#ifdef __REACTOS__
|
||||||
|
#include <mmtypes.h>
|
||||||
VERSIONHELPERAPI
|
VERSIONHELPERAPI
|
||||||
IsReactOS()
|
IsReactOS()
|
||||||
{
|
{
|
||||||
// FIXME: Find a better method!
|
return *(UINT*)(MM_SHARED_USER_DATA_VA + PAGE_SIZE - sizeof(ULONG)) == 0x8EAC705;
|
||||||
WCHAR szWinDir[MAX_PATH];
|
|
||||||
GetWindowsDirectoryW(szWinDir, _countof(szWinDir));
|
|
||||||
return (wcsstr(szWinDir, L"ReactOS") != NULL);
|
|
||||||
}
|
}
|
||||||
#endif // __REACTOS__
|
#endif // __REACTOS__
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue