8000 Replace 'api-ms-win-core-file-l1-2-2.dll' with 'Kernell32.dll' by iSazonov · Pull Request #10680 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@iSazonov
Copy link
Collaborator
@iSazonov iSazonov commented Oct 2, 2019

PR Summary

Fix #9144

For reference #10417

PR Context

PR Checklist

@iSazonov iSazonov added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Oct 2, 2019
@iSazonov iSazonov added this to the 7.0.0-preview.5 milestone Oct 2, 2019
@iSazonov iSazonov requested a review from anmenaga as a code owner October 2, 2019 10:02
int dwFlagsAndAttributes, IntPtr hTemplateFile);

[DllImport(PinvokeDllNames.FindFirstStreamDllName, ExactSpelling = true, CharSet = CharSet.Unicode, SetLastError = true)]
[DllImport("kernel32.dll", ExactSpelling = true, CharSet = CharSet.Unicode, SetLastError = true)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to change FindFirstStreamDllName to point to kernel32.dll?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we could preserve these constants (as reminder) if we want revert the change after Windows 8 (and 7) EOL.

@adityapatwardhan adityapatwardhan merged commit 70a74fb into PowerShell:master Oct 4, 2019
@iSazonov iSazonov deleted the fix-unable-load-dll-api-ms-win-core-2 branch October 4, 2019 02:58
@ghost
Copy link
ghost commented Oct 23, 2019

🎉v7.0.0-preview.5 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get-Item with stream: Unable to load DLL 'api-ms-win-core-file-l1-2-2.dll'

3 participants

0