diff --git a/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp b/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp index b1e08e1a..b9358bbc 100644 --- a/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp +++ b/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp @@ -513,6 +513,7 @@ auto winfsp_drive::GetSecurityByName(PWSTR file_name, PUINT32 attributes, if (sds != 0U) { *descriptor_size = static_cast(sds); } + RAISE_WINFSP_EVENT(function_name, api_path, ret); return ret; } diff --git a/repertory/repertory_test/src/winfsp_test.cpp b/repertory/repertory_test/src/winfsp_test.cpp index 5d5a91c1..b6482c45 100644 --- a/repertory/repertory_test/src/winfsp_test.cpp +++ b/repertory/repertory_test/src/winfsp_test.cpp @@ -81,7 +81,7 @@ static void root_creation_test(const std::string &mount_point) { TEST_HEADER(__FUNCTION__); WIN32_FILE_ATTRIBUTE_DATA ad{}; EXPECT_TRUE( - ::GetFileAttributesEx(&mount_point[0], GetFileExInfoStandard, &ad)); + ::GetFileAttributesEx(mount_point.c_str(), GetFileExInfoStandard, &ad)); EXPECT_EQ(FILE_ATTRIBUTE_DIRECTORY, ad.dwFileAttributes); EXPECT_EQ(0, ad.nFileSizeHigh); EXPECT_EQ(0, ad.nFileSizeLow);