mirror of
https://github.com/ppy/osu.git
synced 2024-09-21 18:47:27 +08:00
Add SetLastError
hint to CreateHardLink
pinvoke method
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
f4316a9827
commit
a3c3112f89
@ -70,7 +70,7 @@ namespace osu.Game.IO
|
||||
return result;
|
||||
}
|
||||
|
||||
[DllImport("Kernel32.dll", CharSet = CharSet.Unicode)]
|
||||
[DllImport("Kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
|
||||
public static extern bool CreateHardLink(string lpFileName, string lpExistingFileName, IntPtr lpSecurityAttributes);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)]
|
||||
|
Loading…
Reference in New Issue
Block a user