miscellaneous fixes
This commit is contained in:
@ -183,6 +183,12 @@ namespace LibTSforge
|
||||
|
||||
public static class Utils
|
||||
{
|
||||
[DllImport("kernel32.dll")]
|
||||
public static extern uint GetSystemDefaultLCID();
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
public static extern bool Wow64EnableWow64FsRedirection(bool Wow64FsEnableRedirection);
|
||||
|
||||
public static string DecodeString(byte[] data)
|
||||
{
|
||||
return Encoding.Unicode.GetString(data).Trim('\0');
|
||||
@ -193,9 +199,6 @@ namespace LibTSforge
|
||||
return Encoding.Unicode.GetBytes(str + '\0');
|
||||
}
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
public static extern uint GetSystemDefaultLCID();
|
||||
|
||||
public static uint CRC32(byte[] data)
|
||||
{
|
||||
const uint polynomial = 0x04C11DB7;
|
||||
|
Reference in New Issue
Block a user