We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c96b53a commit 8507a2bCopy full SHA for 8507a2b
7 files changed
src/shared/ntdll_declarations.h
@@ -543,7 +543,7 @@ typedef struct _FILE_NETWORK_OPEN_INFORMATION
543
544
// Nt
545
546
-using NtQueryDirectoryFile_type = NTSTATUS(WINAPI*)(HANDLE, HANDLE, PIO_APC_ROUTINE,
+using NtQueryDirectoryFile_type = NTSTATUS(WINAPI*)(HANDLE, HANDLE, PIO_APC_ROUTINE,
547
PVOID, PIO_STATUS_BLOCK, PVOID,
548
ULONG, FILE_INFORMATION_CLASS,
549
BOOLEAN, PUNICODE_STRING, BOOLEAN);
@@ -569,7 +569,7 @@ using NtQueryInformationByName_type = NTSTATUS(WINAPI*)(
569
ULONG Length, FILE_INFORMATION_CLASS FileInformationClass);
570
571
using NtOpenFile_type = NTSTATUS(WINAPI*)(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
572
- PIO_STATUS_BLOCK, ULONG, ULONG);
+ PIO_STATUS_BLOCK, ULONG, ULONG);
573
using NtCreateFile_type = NTSTATUS(WINAPI*)(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
574
PIO_STATUS_BLOCK, PLARGE_INTEGER, ULONG,
575
ULONG, ULONG, ULONG, PVOID, ULONG);
src/thooklib/hooklib.cpp
@@ -113,8 +113,8 @@ void WriteLongJump(LPBYTE jumpAddr, LPVOID destination)
113
// a working, space-optimized, relative jump to outside the generated code and
114
// we do want to optimize this jump
115
#if BOOST_ARCH_X86_64
116
- intptr_t dist = reinterpret_cast<intptr_t>(destination) -
117
- (reinterpret_cast<intptr_t>(jumpAddr) + 5);
+ intptr_t dist = reinterpret_cast<intptr_t>(destination) -
+ (reinterpret_cast<intptr_t>(jumpAddr) + 5);
118
int32_t distShort = static_cast<int32_t>(dist);
119
#else
120
int32_t distShort = reinterpret_cast<intptr_t>(destination) -
src/usvfs_dll/hookcontext.cpp
@@ -316,8 +316,8 @@ void HookContext::unlockShared(const HookContext* instance)
316
317
// deprecated
318
//
319
-extern "C" DLLEXPORT HookContext* __cdecl CreateHookContext(
320
- const USVFSParameters& oldParams, HMODULE module)
+extern "C" DLLEXPORT HookContext* __cdecl
+CreateHookContext(const USVFSParameters& oldParams, HMODULE module)
321
{
322
const usvfsParameters p(oldParams);
323
return usvfsCreateHookContext(p, module);
src/usvfs_dll/hooks/file_information_utils.h
@@ -16,8 +16,8 @@ namespace usvfs::details
16
17
#define DECLARE_HAS_FIELD(Field) \
18
template <typename T> \
19
- constexpr auto HasFieldImpl##Field(int)->decltype(std::declval<T>().Field, void(), \
20
- std::true_type()) \
+ constexpr auto HasFieldImpl##Field(int) \
+ -> decltype(std::declval<T>().Field, void(), std::true_type()) \
21
{ \
22
return {}; \
23
} \
src/usvfs_dll/maptracker.h
@@ -565,7 +565,7 @@ class CreateRerouter
565
// check virtualized paths
566
DWORD virtAttr = GetFileAttributesW(lpFileName);
567
bool isFile = virtAttr != INVALID_FILE_ATTRIBUTES &&
568
- (virtAttr & FILE_ATTRIBUTE_DIRECTORY) == 0;
+ (virtAttr & FILE_ATTRIBUTE_DIRECTORY) == 0;
m_isDir =
virtAttr != INVALID_FILE_ATTRIBUTES && (virtAttr & FILE_ATTRIBUTE_DIRECTORY);
test/tinjectlib_test/testinject_dll/main.h
@@ -3,8 +3,8 @@
3
#define WIN32_LEAN_AND_MEAN
4
#include <windows.h>
5
6
-extern "C"
7
- __declspec(dllexport) void __cdecl InitNoQuit(LPVOID userData, size_t userDataSize);
+extern "C" __declspec(dllexport) void __cdecl InitNoQuit(LPVOID userData,
+ size_t userDataSize);
8
extern "C" __declspec(dllexport) void __cdecl InitNoParam(LPVOID userData,
9
size_t userDataSize);
10
extern "C" __declspec(dllexport) void __cdecl InitComplexParam(LPVOID userData,
test/usvfs_global_test_runner/usvfs_global_test/usvfs_global_test.cpp
@@ -102,8 +102,8 @@ TEST(BasicTest, SimpleTest)
102
}
103
104
const auto doc_txt = data / "docs" / "doc.txt";
105
- HandleGuard hdl = CreateFileW(doc_txt.c_str(), GENERIC_READ, 0, nullptr,
106
- OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, nullptr);
+ HandleGuard hdl = CreateFileW(doc_txt.c_str(), GENERIC_READ, 0, nullptr,
+ OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, nullptr);
107
ASSERT_NE(INVALID_HANDLE_VALUE, (HANDLE)hdl);
108
109
WCHAR filepath[1024];
@@ -134,8 +134,8 @@ TEST(BasicTest, SimpleTest)
134
135
136
const auto info_txt = data / "readme.txt";
137
- HandleGuard hdl = CreateFileW(info_txt.c_str(), GENERIC_READ, 0, nullptr,
138
+ HandleGuard hdl = CreateFileW(info_txt.c_str(), GENERIC_READ, 0, nullptr,
139
140
141
char buffer[4096];
0 commit comments