Skip to content

Commit bb963e0

Browse files
author
Colin Robertson
authored
Merge pull request MicrosoftDocs#866 from MicrosoftDocs/FromPublicMasterBranch
Confirm merge from FromPublicMasterBranch to master to sync with https://github.com/MicrosoftDocs/cpp-docs (branch master)
2 parents f7cb6f1 + ee9fb77 commit bb963e0

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
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.|

docs/cpp/codesnippet/CPP/how-to-create-and-use-unique-ptr-instances_3.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ class MyClass
77
public:
88

99
// Initialize by using make_unique with ClassFactory default constructor.
10-
MyClass() : factory ( make_unique<ClassFactory>())
10+
MyClass() : factory (make_unique<ClassFactory>())
1111
{
1212
}
1313

1414
void MakeClass()
1515
{
1616
factory->DoSomething();
1717
}
18-
};
18+
};

docs/cpp/how-to-create-and-use-unique-ptr-instances.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A [unique_ptr](../standard-library/unique-ptr-class.md) does not share its point
1717

1818
![Moving the ownership of a unique&#95;ptr](../cpp/media/unique_ptr.png "unique_ptr")
1919

20-
`unique_ptr` is defined in the `<memory>` header in the C++ Standard Library. It is exactly is efficient as a raw pointer and can be used in C++ Standard Library containers. The addition of `unique_ptr` instances to C++ Standard Library containers is efficient because the move constructor of the `unique_ptr` eliminates the need for a copy operation.
20+
`unique_ptr` is defined in the `<memory>` header in the C++ Standard Library. It is exactly as efficient as a raw pointer and can be used in C++ Standard Library containers. The addition of `unique_ptr` instances to C++ Standard Library containers is efficient because the move constructor of the `unique_ptr` eliminates the need for a copy operation.
2121

2222
## Example
2323
The following example shows how to create `unique_ptr` instances and pass them between functions.
@@ -47,4 +47,4 @@ A [unique_ptr](../standard-library/unique-ptr-class.md) does not share its point
4747

4848
## See Also
4949
[Smart Pointers](../cpp/smart-pointers-modern-cpp.md)
50-
[make_unique](../standard-library/memory-functions.md#make_unique)
50+
[make_unique](../standard-library/memory-functions.md#make_unique)

0 commit comments

Comments
 (0)