Legacy: Fix icsneoGetVnetSimpleNetid

The NetID is written to the out* parameter, not returned.
v0.3.0-dev
Paul Hollinsky 2022-02-21 21:06:14 -05:00
parent 52c7b5aaca
commit 7aedb673fd
1 changed files with 3 additions and 2 deletions

View File

@ -178,7 +178,7 @@ static inline unsigned int OffsetToSimpleNetworkId(size_t offset)
return NETID_DEVICE;
}
static inline unsigned int GetVnetAgnosticNetid(size_t fullNetid)
static inline size_t GetVnetAgnosticNetid(size_t fullNetid)
{
if (IdIsSlaveARange1(fullNetid))
{
@ -1278,7 +1278,8 @@ int LegacyDLLExport icsneoGetNetidforSlaveVNETs(size_t* NetworkIndex, EPlasmaIon
int LegacyDLLExport icsneoGetVnetSimpleNetid(size_t* FullNetID)
{
return GetVnetAgnosticNetid(*FullNetID);
*FullNetID = GetVnetAgnosticNetid(*FullNetID);
return true;
}
int LegacyDLLExport icsneoSerialNumberFromString(unsigned long* serial, char* data)