Skip to content

Commit d1f576a

Browse files
cgcaiColin Robertson
authored andcommitted
Fix typo in DependentLoadFlag documentation (#271)
* Fix typo in DependentLoadFlag * Rephrase to remove consecutive usage of 'for example'
1 parent 512dc14 commit d1f576a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

docs/build/loadlibrary-and-afxloadlibrary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ For MFC applications that load MFC extension DLLs, we recommend that you use `Af
2525
If Windows cannot load the DLL, the process can attempt to recover from the error. For example, the process could notify the user of the error and ask the user to specify another path to the DLL.
2626

2727
> [!IMPORTANT]
28-
> Make sure to specify the full path of any DLLs. The current directory is searched first when files are loaded. If you do not qualify the path of the file, a file that is not the intended one might be loaded. Another way to prevent this is by using the [/DEPENDENTLOADFLAGS](../build/reference/dependentloadflags.md) linker option.
28+
> Make sure to specify the full path of any DLLs. The current directory is searched first when files are loaded. If you do not qualify the path of the file, a file that is not the intended one might be loaded. Another way to prevent this is by using the [/DEPENDENTLOADFLAG](../build/reference/dependentloadflag.md) linker option.
2929
3030
## What do you want to do?
3131

docs/build/reference/TOC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
### [/DELAY (Delay Load Import Settings)](delay-delay-load-import-settings.md)
205205
### [/DELAYLOAD (Delay Load Import)](delayload-delay-load-import.md)
206206
### [/DELAYSIGN (Partially Sign an Assembly)](delaysign-partially-sign-an-assembly.md)
207-
### [/DEPENDENTLOADFLAGS (Set default dependent load flags)](dependentloadflags.md)
207+
### [/DEPENDENTLOADFLAG (Set default dependent load flags)](dependentloadflag.md)
208208
### [/DLL (Build a DLL)](dll-build-a-dll.md)
209209
### [/DRIVER (Windows NT Kernel Mode Driver)](driver-windows-nt-kernel-mode-driver.md)
210210
### [/DYNAMICBASE (Use address space layout randomization)](dynamicbase-use-address-space-layout-randomization.md)

docs/build/reference/dependentloadflags.md renamed to docs/build/reference/dependentloadflag.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
2-
title: "/DEPENDENTLOADFLAGS (Set default dependent load flags)"
3-
description: "The /DEPENDENTLOADFLAGS option sets default flags for DLLs loaded using LoadLibrary"
2+
title: "/DEPENDENTLOADFLAG (Set default dependent load flags)"
3+
description: "The /DEPENDENTLOADFLAG option sets default flags for DLLs loaded using LoadLibrary"
44
ms.custom: ""
55
ms.date: "05/18/2018"
66
ms.technology: ["cpp-tools"]
77
ms.topic: "reference"
88
f1_keywords: ["dependentloadflag"]
99
dev_langs: ["C++"]
10-
helpviewer_keywords: ["LINK tool [C++], dependent load flags", "-DEPENDENTLOADFLAGS linker option", "linker [C++], DEPENDENTLOADFLAGS", "DEPENDENTLOADFLAGS linker option", "/DEPENDENTLOADFLAGS linker option"]
10+
helpviewer_keywords: ["LINK tool [C++], dependent load flags", "-DEPENDENTLOADFLAG linker option", "linker [C++], DEPENDENTLOADFLAG", "DEPENDENTLOADFLAG linker option", "/DEPENDENTLOADFLAG linker option"]
1111
author: "corob-msft"
1212
ms.author: "corob"
1313
ms.workload: ["cplusplus"]
1414
---
15-
# /DEPENDENTLOADFLAGS (Set default dependent load flags)
15+
# /DEPENDENTLOADFLAG (Set default dependent load flags)
1616

1717
Sets the default load flags used when `LoadLibrary` is used to load DLLs.
1818

1919
## Syntax
2020

21-
> **/DEPENDENTLOADFLAGS**[**:**_loadflags_]
21+
> **/DEPENDENTLOADFLAG**[**:**_loadflags_]
2222
2323
### Arguments
2424

@@ -34,9 +34,9 @@ On supported operating systems, this option has the effect of changing calls to
3434

3535
This flag can be used to prevent DLL planting attacks. For example, if an app uses `LoadLibrary` to load a dependent DLL, an attacker could plant a DLL with the same name in the search path used by `LoadLibrary`, such as the current directory, which may be checked before system directories if safe DLL search mode is disabled. Safe DLL search mode places the user's current directory later in the search order, and is enabled by default on Windows XP SP2 and later versions. For more information, see [Dynamic-Link Library Search Order](https://msdn.microsoft.com/library/windows/desktop/ms682586.aspx).
3636

37-
For example, if you specify the link option `/DEPENDENTLOADFLAGS:0xA00` (the value of the combined flags `LOAD_LIBRARY_SEARCH_APPLICATION_DIR | LOAD_LIBRARY_SEARCH_SYSTEM32`), then even if safe DLL search mode is disabled on the user's computer, the DLL search path is limited to protected directories that are more difficult for an attacker to change. For information on the flags available, and their symbolic and numeric values, see the *dwFlags* parameter description in [LoadLibraryEx](https://go.microsoft.com/fwlink/p/?LinkID=236091).
37+
If you specify the link option `/DEPENDENTLOADFLAG:0xA00` (the value of the combined flags `LOAD_LIBRARY_SEARCH_APPLICATION_DIR | LOAD_LIBRARY_SEARCH_SYSTEM32`), then even if safe DLL search mode is disabled on the user's computer, the DLL search path is limited to protected directories that are more difficult for an attacker to change. For information on the flags available, and their symbolic and numeric values, see the *dwFlags* parameter description in [LoadLibraryEx](https://go.microsoft.com/fwlink/p/?LinkID=236091).
3838

39-
### To set the DEPENDENTLOADFLAGS linker option in the Visual Studio development environment
39+
### To set the DEPENDENTLOADFLAG linker option in the Visual Studio development environment
4040

4141
1. Open the project's **Property Pages** dialog box. For details, see [Setting Visual C++ Project Properties](../../ide/working-with-project-properties.md).
4242

docs/build/reference/linker-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ You can use the [comment](../../preprocessor/comment-c-cpp.md) pragma to specify
5454
|[/DELAY](../../build/reference/delay-delay-load-import-settings.md)|Controls the delayed loading of DLLs.|
5555
|[/DELAYLOAD](../../build/reference/delayload-delay-load-import.md)|Causes the delayed loading of the specified DLL.|
5656
|[/DELAYSIGN](../../build/reference/delaysign-partially-sign-an-assembly.md)|Partially signs an assembly.|
57-
|[/DEPENDENTLOADFLAGS](dependentloadflags.md)|Sets default flags on dependent DLL loads.|
57+
|[/DEPENDENTLOADFLAG](dependentloadflag.md)|Sets default flags on dependent DLL loads.|
5858
|[/DLL](../../build/reference/dll-build-a-dll.md)|Builds a DLL.|
5959
|[/DRIVER](../../build/reference/driver-windows-nt-kernel-mode-driver.md)|Creates a kernel mode driver.|
6060
|[/DYNAMICBASE](../../build/reference/dynamicbase-use-address-space-layout-randomization.md)|Specifies whether to generate an executable image that can be randomly rebased at load time by using the address space layout randomization (ASLR) feature.|

0 commit comments

Comments
 (0)