(b4c25c1e7) whoops

This commit is contained in:
Joonas Rikkonen
2019-06-16 18:02:25 +03:00
parent 682b57a1c3
commit 226d26ea4c

View File

@@ -260,7 +260,7 @@ namespace SteamNative
byte[] bytesKey = Encoding.UTF8.GetBytes(pKey);
GCHandle handleKey = GCHandle.Alloc(bytesKey, GCHandleType.Pinned);
byte[] bytesValue = Encoding.UTF8.GetBytes(pValue);
GCHandle handleValue = GCHandle.Alloc(bytesKey, GCHandleType.Pinned);
GCHandle handleValue = GCHandle.Alloc(bytesValue, GCHandleType.Pinned);
platform.ISteamGameServer_SetKeyValue( handleKey.AddrOfPinnedObject(), handleValue.AddrOfPinnedObject() );
handleKey.Free(); handleValue.Free();
}