Skip to content

Commit 807c5e4

Browse files
committed
Format
1 parent 1e90324 commit 807c5e4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/libmongoc/src/mongoc/mongoc-version-functions.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ mongoc_check_version(int required_major, int required_minor, int required_micro)
8585

8686
#ifdef _WIN32
8787

88-
typedef NTSTATUS (APIENTRY *RTLVERIFYVERSIONINFO_FN) (PRTL_OSVERSIONINFOEXW VersionInfo, ULONG TypeMask, ULONGLONG ConditionMask);
88+
typedef NTSTATUS(APIENTRY *RTLVERIFYVERSIONINFO_FN)(PRTL_OSVERSIONINFOEXW VersionInfo,
89+
ULONG TypeMask,
90+
ULONGLONG ConditionMask);
8991

9092
/**
9193
* _mongoc_verify_windows_version:
@@ -106,7 +108,7 @@ _mongoc_verify_windows_version(int major_version, int minor_version, int build_n
106108
}
107109

108110
/* Windows version functions may not return the correct version for
109-
later Windows versions unless the application is so manifested. Try
111+
later Windows versions unless the application is so manifested. Try
110112
to use the more accurate kernel function RtlVerifyVersionInfo */
111113
HMODULE hDll = LoadLibrary(TEXT("Ntdll.dll"));
112114
if (hDll) {
@@ -126,7 +128,7 @@ _mongoc_verify_windows_version(int major_version, int minor_version, int build_n
126128
matched = (pRtlVerifyVersionInfo(&osvi, VER_MAJORVERSION | VER_MINORVERSION, mask) == 0);
127129
} else {
128130
matched = (VerifyVersionInfoW(&osvi, VER_MAJORVERSION | VER_MINORVERSION, mask) != 0);
129-
}
131+
}
130132

131133
// Compare build number separately if major and minor versions are equal
132134
if (build_number && matched && _mongoc_verify_windows_version(major_version, minor_version, 0, true)) {
@@ -139,8 +141,7 @@ _mongoc_verify_windows_version(int major_version, int minor_version, int build_n
139141

140142
if (pRtlVerifyVersionInfo) {
141143
matched = (pRtlVerifyVersionInfo(&osvi, VER_BUILDNUMBER, mask) == 0);
142-
}
143-
else {
144+
} else {
144145
matched = (VerifyVersionInfoW(&osvi, VER_BUILDNUMBER, mask) != 0);
145146
}
146147
}

0 commit comments

Comments
 (0)