Skip to content

Commit

Permalink
Merge branch 'perftest-results-msvc' of github.com:jkoritzinsky/DNMD …
Browse files Browse the repository at this point in the history
…into perftest-results-msvc
  • Loading branch information
jkoritzinsky committed Oct 17, 2024
2 parents e729679 + 5d02f93 commit 76778fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/interfaces/importhelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,12 +603,14 @@ namespace
if (!md_get_column_value_as_blob(sourceAssembly, mdtAssembly_PublicKey, &publicKey, &publicKeyLength))
return E_FAIL;

span<const uint8_t> publicKeyTokenSpan;
StrongNameToken publicKeyToken;
if (publicKey != nullptr)
{
assert(IsAfPublicKey(flags));
flags &= ~afPublicKey;
RETURN_IF_FAILED(StrongNameTokenFromPublicKey({ publicKey, publicKeyLength }, publicKeyToken));
publicKeyTokenSpan = { publicKeyToken.data(), publicKeyToken.size() };
}
else
{
Expand Down Expand Up @@ -648,7 +650,7 @@ namespace
flags,
assemblyName,
assemblyCulture,
{ publicKeyToken.data(), publicKeyToken.size() },
publicKeyTokenSpan,
targetAssembly));

if (hr == S_OK)
Expand Down

0 comments on commit 76778fc

Please sign in to comment.