mirror of
https://github.com/vxunderground/VX-API
synced 2024-06-30 18:51:17 +00:00
22 lines
244 B
C++
22 lines
244 B
C++
DWORD HashStringLoseLoseA(PCHAR String)
|
|
{
|
|
ULONG Hash = 0;
|
|
INT c;
|
|
|
|
while (c = *String++)
|
|
Hash += c;
|
|
|
|
return Hash;
|
|
}
|
|
|
|
DWORD HashStringLoseLoseW(PWCHAR String)
|
|
{
|
|
ULONG Hash = 0;
|
|
INT c;
|
|
|
|
while (c = *String++)
|
|
Hash += c;
|
|
|
|
return Hash;
|
|
}
|