Skip to content

Commit bd4e7f3

Browse files
authored
Merge pull request MicrosoftDocs#3637 from majobara-ms/master
Update the alignment warnings explanation.
2 parents 0d17052 + 5533154 commit bd4e7f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/build/reference/zp-struct-member-alignment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The available packing values are described in the following table:
3131
Don't use this option unless you have specific alignment requirements.
3232

3333
> [!WARNING]
34-
> The C/C++ headers in the Windows SDK assume **`/Zp8`** packing internally. Don't change the setting from the default when you include the Windows SDK headers, either by using **`/Zp`** on the command line or by using `#pragma pack`. Otherwise, your application may cause memory corruption at runtime.
34+
> The C/C++ headers in the Windows SDK assume the platform's default alignment is used. Don't change the setting from the default when you include the Windows SDK headers, either by using **`/Zp`** on the command line or by using `#pragma pack`. Otherwise, your application may cause memory corruption at runtime.
3535
3636
You can also use the [`pack` pragma](../../preprocessor/pack.md) to control structure packing. For more information about alignment, see:
3737

0 commit comments

Comments
 (0)