Skip to content

Commit ee2bf6e

Browse files
committed
Clean up extra closing curly braces in sample code
1 parent 51b87dd commit ee2bf6e

File tree

56 files changed

+27
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+27
-127
lines changed

src/drivers/apps/queries/experimental/UnsafeCallInGlobalInit/UnsafeCallInGlobalInit.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ DLLMain function
4444
}
4545
return TRUE; // Successful DLL_PROCESS_ATTACH.
4646
}
47-
}
4847
4948
```
5049

src/drivers/apps/queries/experimental/UnsafeCallInGlobalInit/UnsafeCallInGlobalInit.qhelp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
break;
4848
}
4949
return TRUE; // Successful DLL_PROCESS_ATTACH.
50-
}
5150
}]]>
5251
</sample>
5352
</example>

src/drivers/general/queries/AnnotationSyntax/AnnotationSyntax.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ _IRQL_saves_global_ not applied to entire function
1818
// ...
1919
;
2020
}
21-
}
2221
2322
```
2423
_Kernel_clear_do_init_ not used with either "yes" or "no"
@@ -38,7 +37,6 @@ _Kernel_clear_do_init_ not used with either "yes" or "no"
3837
{
3938
; // do nothing
4039
}
41-
}
4240
4341
```
4442

src/drivers/general/queries/AnnotationSyntax/AnnotationSyntax.qhelp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
{
2222
// ...
2323
;
24-
}
2524
}]]>
2625
</sample>
2726
<p>
@@ -40,7 +39,6 @@
4039
4140
{
4241
; // do nothing
43-
}
4442
}]]>
4543
</sample>
4644
</example>

src/drivers/general/queries/FloatHardwareStateProtection/FloatHardwareStateProtection.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Function that uses float without protecting floating-point hardware state
1616
float f = 0.0f;
1717
f = f + 1.0f;
1818
}
19-
}
2019
2120
```
2221
Function that uses float with protected floating-point hardware state
@@ -32,7 +31,6 @@ Function that uses float with protected floating-point hardware state
3231
f = f + 1.0f;
3332
}
3433
KeRestoreFloatingPointState(&saveData);
35-
}
3634
3735
```
3836

src/drivers/general/queries/FloatHardwareStateProtection/FloatHardwareStateProtection.qhelp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
{
2020
float f = 0.0f;
2121
f = f + 1.0f;
22-
}
2322
}]]>
2423
</sample>
2524
<p>
@@ -34,8 +33,7 @@
3433
{
3534
f = f + 1.0f;
3635
}
37-
KeRestoreFloatingPointState(&saveData);
38-
}]]>
36+
KeRestoreFloatingPointState(&saveData);]]>
3937
</sample>
4038
</example>
4139
<references>

src/drivers/general/queries/ImportantFunctionCallOptimizedOut/ImportantFunctionCallOptimizedOut.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Example of instance where function call may be optimized away
2222
*/
2323
ZeroMemory(Password, sizeof(Password));
2424
}
25-
}
2625

2726
```
2827
Using SecureZeroMemory or RtlSecureZeroMemory will prevent the compiler from optimizing away the function call.
@@ -35,7 +34,6 @@ Using SecureZeroMemory or RtlSecureZeroMemory will prevent the compiler from opt
3534
3635
RtlSecureZeroMemory(Password, sizeof(Password));
3736
}
38-
}
3937
4038
```
4139

src/drivers/general/queries/ImportantFunctionCallOptimizedOut/ImportantFunctionCallOptimizedOut.qhelp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
* the following
2929
*/
3030
ZeroMemory(Password, sizeof(Password));
31-
}
3231
}]]>
3332
</sample>
3433
<p>
@@ -40,7 +39,6 @@
4039
char Password[100];
4140
4241
RtlSecureZeroMemory(Password, sizeof(Password));
43-
}
4442
}]]>
4543
</sample>
4644
</example>

src/drivers/general/queries/ImproperNotOperatorOnZero/ImproperNotOperatorOnZero.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Returning !0 instead of a proper error code.
1515
{
1616
return !0;
1717
}
18-
}
1918
2019
```
2120

src/drivers/general/queries/ImproperNotOperatorOnZero/ImproperNotOperatorOnZero.qhelp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
NTSTATUS test_func()
2020
{
2121
return !0;
22-
}
2322
}]]>
2423
</sample>
2524
</example>

0 commit comments

Comments
 (0)