summaryrefslogtreecommitdiffstats
path: root/tests/shared
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shared')
-rw-r--r--tests/shared/filesystem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shared/filesystem.h b/tests/shared/filesystem.h
index a68130a324..2082128a09 100644
--- a/tests/shared/filesystem.h
+++ b/tests/shared/filesystem.h
@@ -133,7 +133,7 @@ public:
memset( reparseInfo, 0, sizeof( *reparseInfo ));
reparseInfo->ReparseTag = IO_REPARSE_TAG_MOUNT_POINT;
- reparseInfo->ReparseTargetLength = DWORD(target.size() * sizeof(wchar_t));
+ reparseInfo->ReparseTargetLength = WORD(target.size()) * WORD(sizeof(wchar_t));
reparseInfo->ReparseTargetMaximumLength = reparseInfo->ReparseTargetLength + sizeof(wchar_t);
target.toWCharArray(reparseInfo->ReparseTarget);
reparseInfo->ReparseDataLength = reparseInfo->ReparseTargetLength + 12;