Skip to content

Commit 8507a2b

Browse files
committed
Lint
1 parent c96b53a commit 8507a2b

7 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/shared/ntdll_declarations.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ typedef struct _FILE_NETWORK_OPEN_INFORMATION
543543

544544
// Nt
545545

546-
using NtQueryDirectoryFile_type = NTSTATUS(WINAPI*)(HANDLE, HANDLE, PIO_APC_ROUTINE,
546+
using NtQueryDirectoryFile_type = NTSTATUS(WINAPI*)(HANDLE, HANDLE, PIO_APC_ROUTINE,
547547
PVOID, PIO_STATUS_BLOCK, PVOID,
548548
ULONG, FILE_INFORMATION_CLASS,
549549
BOOLEAN, PUNICODE_STRING, BOOLEAN);
@@ -569,7 +569,7 @@ using NtQueryInformationByName_type = NTSTATUS(WINAPI*)(
569569
ULONG Length, FILE_INFORMATION_CLASS FileInformationClass);
570570

571571
using NtOpenFile_type = NTSTATUS(WINAPI*)(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
572-
PIO_STATUS_BLOCK, ULONG, ULONG);
572+
PIO_STATUS_BLOCK, ULONG, ULONG);
573573
using NtCreateFile_type = NTSTATUS(WINAPI*)(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES,
574574
PIO_STATUS_BLOCK, PLARGE_INTEGER, ULONG,
575575
ULONG, ULONG, ULONG, PVOID, ULONG);

src/thooklib/hooklib.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ void WriteLongJump(LPBYTE jumpAddr, LPVOID destination)
113113
// a working, space-optimized, relative jump to outside the generated code and
114114
// we do want to optimize this jump
115115
#if BOOST_ARCH_X86_64
116-
intptr_t dist = reinterpret_cast<intptr_t>(destination) -
117-
(reinterpret_cast<intptr_t>(jumpAddr) + 5);
116+
intptr_t dist = reinterpret_cast<intptr_t>(destination) -
117+
(reinterpret_cast<intptr_t>(jumpAddr) + 5);
118118
int32_t distShort = static_cast<int32_t>(dist);
119119
#else
120120
int32_t distShort = reinterpret_cast<intptr_t>(destination) -

src/usvfs_dll/hookcontext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ void HookContext::unlockShared(const HookContext* instance)
316316

317317
// deprecated
318318
//
319-
extern "C" DLLEXPORT HookContext* __cdecl CreateHookContext(
320-
const USVFSParameters& oldParams, HMODULE module)
319+
extern "C" DLLEXPORT HookContext* __cdecl
320+
CreateHookContext(const USVFSParameters& oldParams, HMODULE module)
321321
{
322322
const usvfsParameters p(oldParams);
323323
return usvfsCreateHookContext(p, module);

src/usvfs_dll/hooks/file_information_utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ namespace usvfs::details
1616

1717
#define DECLARE_HAS_FIELD(Field) \
1818
template <typename T> \
19-
constexpr auto HasFieldImpl##Field(int)->decltype(std::declval<T>().Field, void(), \
20-
std::true_type()) \
19+
constexpr auto HasFieldImpl##Field(int) \
20+
-> decltype(std::declval<T>().Field, void(), std::true_type()) \
2121
{ \
2222
return {}; \
2323
} \

src/usvfs_dll/maptracker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ class CreateRerouter
565565
// check virtualized paths
566566
DWORD virtAttr = GetFileAttributesW(lpFileName);
567567
bool isFile = virtAttr != INVALID_FILE_ATTRIBUTES &&
568-
(virtAttr & FILE_ATTRIBUTE_DIRECTORY) == 0;
568+
(virtAttr & FILE_ATTRIBUTE_DIRECTORY) == 0;
569569
m_isDir =
570570
virtAttr != INVALID_FILE_ATTRIBUTES && (virtAttr & FILE_ATTRIBUTE_DIRECTORY);
571571

test/tinjectlib_test/testinject_dll/main.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#define WIN32_LEAN_AND_MEAN
44
#include <windows.h>
55

6-
extern "C"
7-
__declspec(dllexport) void __cdecl InitNoQuit(LPVOID userData, size_t userDataSize);
6+
extern "C" __declspec(dllexport) void __cdecl InitNoQuit(LPVOID userData,
7+
size_t userDataSize);
88
extern "C" __declspec(dllexport) void __cdecl InitNoParam(LPVOID userData,
99
size_t userDataSize);
1010
extern "C" __declspec(dllexport) void __cdecl InitComplexParam(LPVOID userData,

test/usvfs_global_test_runner/usvfs_global_test/usvfs_global_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ TEST(BasicTest, SimpleTest)
102102
}
103103

104104
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);
105+
HandleGuard hdl = CreateFileW(doc_txt.c_str(), GENERIC_READ, 0, nullptr,
106+
OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, nullptr);
107107
ASSERT_NE(INVALID_HANDLE_VALUE, (HANDLE)hdl);
108108

109109
WCHAR filepath[1024];
@@ -134,8 +134,8 @@ TEST(BasicTest, SimpleTest)
134134
}
135135

136136
const auto info_txt = data / "readme.txt";
137-
HandleGuard hdl = CreateFileW(info_txt.c_str(), GENERIC_READ, 0, nullptr,
138-
OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, nullptr);
137+
HandleGuard hdl = CreateFileW(info_txt.c_str(), GENERIC_READ, 0, nullptr,
138+
OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, nullptr);
139139
ASSERT_NE(INVALID_HANDLE_VALUE, (HANDLE)hdl);
140140

141141
char buffer[4096];

0 commit comments

Comments
 (0)