-
Notifications
You must be signed in to change notification settings - Fork 264
cppwinrt should not call LoadLibrary anywhere unless new WINRT_REG_FREE define is defined, re-activating regfree behavior #1446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dmachaj
wants to merge
19
commits into
master
Choose a base branch
from
user/dmachaj/no-loadlibrary
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+117
−32
Open
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
a346936
cppwinrt should not call LoadLibrary anywhere unless new WINRT_REG_FR…
dmachaj dcc74d4
Add some new testcases for when WINRT_REG_FREE is undefined
dmachaj ad6dace
Fix some breaks. Add missing build order dependency. Add inline keyw…
dmachaj 266741a
Add one other missing test project to test component build dependency
dmachaj 3734b0e
Remove issameinterface bool and add a class_not_registered restrictio…
dmachaj 2ead2c5
Add a test case where fusion manifest is used to support activation w…
dmachaj 2f7150c
Merge branch 'master' into user/dmachaj/no-loadlibrary
dmachaj c695204
Add error_class_not_available to the condition for regfree fallback
dmachaj 04b00f4
Revert "Add error_class_not_available to the condition for regfree fa…
dmachaj 8f5edf6
Add a define (WINRT_NEVER_REG_FREE) that will break the build if link…
dmachaj d7292ac
Merge branch 'master' into user/dmachaj/no-loadlibrary
dmachaj 8f9d77b
Merge branch 'master' into user/dmachaj/no-loadlibrary
dmachaj ed2302e
Merge remote-tracking branch 'origin/master' into user/dmachaj/no-loa…
dmachaj 98ff9f3
Merge branch 'master' into user/dmachaj/no-loadlibrary
dmachaj db7693b
Merge branch 'master' into user/dmachaj/no-loadlibrary
jonwis b9d7ec5
Merge branch 'master' into user/dmachaj/no-loadlibrary
dmachaj c930243
Merge branch 'master' into user/dmachaj/no-loadlibrary
dmachaj a9346fd
Merge branch 'master' into user/dmachaj/no-loadlibrary
dmachaj 364259c
Merge branch 'master' into user/dmachaj/no-loadlibrary
dmachaj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,10 +71,12 @@ namespace winrt::impl | |
|
|
||
| using update_module_lock = module_lock_updater<true>; | ||
|
|
||
| #ifdef WINRT_REG_FREE | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This ifdef makes it so that there is definitely no LoadLibrary usage when regfree is inactive. |
||
| inline void* load_library(wchar_t const* library) noexcept | ||
| { | ||
| return WINRT_IMPL_LoadLibraryExW(library, nullptr, 0x00001000 /* LOAD_LIBRARY_SEARCH_DEFAULT_DIRS */); | ||
| } | ||
| #endif // WINRT_REG_FREE | ||
|
|
||
| inline hresult get_agile_reference(winrt::guid const& iid, void* object, void** reference) noexcept | ||
| { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| #pragma once | ||
|
|
||
| #define WINRT_REG_FREE | ||
| #include "catch.hpp" | ||
| #include "winrt/Windows.Foundation.Collections.h" | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| #pragma once | ||
|
|
||
| #define WINRT_REG_FREE | ||
| #include "catch.hpp" | ||
| #include "winrt/Windows.Foundation.Collections.h" | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.