Skip to content

Commit 3d2dde6

Browse files
committed
Try adding W suffix
1 parent e27ba64 commit 3d2dde6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NodeSwap/NodeSwap.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<OutputType>Exe</OutputType>
66
<TargetFramework>net8.0-windows</TargetFramework>
77
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
8-
<Version>1.6.3</Version>
8+
<Version>1.6.4</Version>
99
<!-- Single file app – https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file -->
1010
<PublishSingleFile>true</PublishSingleFile>
1111
<RuntimeIdentifier>win-x64</RuntimeIdentifier>

NodeSwap/Services/FileSystemService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public bool CreateSymbolicLink(string linkPath, string targetPath, bool isDirect
3030
return result;
3131
}
3232

33-
[LibraryImport("kernel32.dll", EntryPoint = "CreateSymbolicLink", SetLastError = true, StringMarshalling = StringMarshalling.Utf16)]
33+
[LibraryImport("kernel32.dll", EntryPoint = "CreateSymbolicLinkW", SetLastError = true, StringMarshalling = StringMarshalling.Utf16)]
3434
[return: MarshalAs(UnmanagedType.Bool)]
3535
private static partial bool CreateSymbolicLinkWin32(
3636
string lpSymlinkFileName,

0 commit comments

Comments
 (0)