@@ -85,7 +85,9 @@ mongoc_check_version(int required_major, int required_minor, int required_micro)
85
85
86
86
#ifdef _WIN32
87
87
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 );
89
91
90
92
/**
91
93
* _mongoc_verify_windows_version:
@@ -106,7 +108,7 @@ _mongoc_verify_windows_version(int major_version, int minor_version, int build_n
106
108
}
107
109
108
110
/* 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
110
112
to use the more accurate kernel function RtlVerifyVersionInfo */
111
113
HMODULE hDll = LoadLibrary (TEXT ("Ntdll.dll" ));
112
114
if (hDll ) {
@@ -126,7 +128,7 @@ _mongoc_verify_windows_version(int major_version, int minor_version, int build_n
126
128
matched = (pRtlVerifyVersionInfo (& osvi , VER_MAJORVERSION | VER_MINORVERSION , mask ) == 0 );
127
129
} else {
128
130
matched = (VerifyVersionInfoW (& osvi , VER_MAJORVERSION | VER_MINORVERSION , mask ) != 0 );
129
- }
131
+ }
130
132
131
133
// Compare build number separately if major and minor versions are equal
132
134
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
139
141
140
142
if (pRtlVerifyVersionInfo ) {
141
143
matched = (pRtlVerifyVersionInfo (& osvi , VER_BUILDNUMBER , mask ) == 0 );
142
- }
143
- else {
144
+ } else {
144
145
matched = (VerifyVersionInfoW (& osvi , VER_BUILDNUMBER , mask ) != 0 );
145
146
}
146
147
}
0 commit comments