[KMTESTS:OB] Refactor OBJ_DIRECTORY_TYPE_INFO_SIZE define construct

Object types are mere type names with no backslash. Also remove wcslen()
from the define, it's not needed.
This commit is contained in:
George Bișoc 2023-03-25 19:47:26 +01:00
parent b373b7a11e
commit f364bfc8f4
No known key found for this signature in database
GPG key ID: 688C4FBE25D7DEF6

View file

@ -8,7 +8,7 @@
#include <kmt_test.h>
#define OBJ_WINSTA_DIRECTORY_NAME_INFO_SIZE (sizeof(UNICODE_STRING) + sizeof(L"\\Windows"))
#define OBJ_DIRECTORY_TYPE_INFO_SIZE (sizeof(OBJECT_TYPE_INFORMATION) + (wcslen(L"\\Directory") * sizeof(WCHAR)))
#define OBJ_DIRECTORY_TYPE_INFO_SIZE (sizeof(OBJECT_TYPE_INFORMATION) + sizeof(L"Directory"))
static
VOID