aboutsummaryrefslogtreecommitdiff
path: root/source/tests
diff options
context:
space:
mode:
Diffstat (limited to 'source/tests')
-rw-r--r--source/tests/test_compat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/tests/test_compat.c b/source/tests/test_compat.c
index f760a6e..741aa78 100644
--- a/source/tests/test_compat.c
+++ b/source/tests/test_compat.c
@@ -148,5 +148,13 @@ BOOL test_stdio(void)
ERRETCP( wStr != NULL );
COMPAT(free)(wStr);
+ char sysDir[512];
+ char sysWow64Dir[512];
+ UINT sysDirRetVal = _GetSystemDirectory(sysDir, sizeof(sysDir));
+ ERRETCP( sysDirRetVal > 0 && sysDirRetVal <= sizeof(sysDir) );
+ sysDirRetVal = _GetSystemWow64Directory(sysWow64Dir, sizeof(sysWow64Dir));
+ ERRETCP( sysDirRetVal > 0 && sysDirRetVal <= sizeof(sysDir) );
+ ERRETCP( strncmp(sysDir, sysWow64Dir, sizeof(sysDir)) != 0 );
+
return TRUE;
}