Skip to content

Commit

Permalink
Refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancorvussolis committed May 21, 2022
1 parent a2a8ed3 commit a24027f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ ULONG htonlc(ULONG h)
if (IsLittleEndian())
{
h = (h << 24) | ((h & 0x0000FF00) << 8) |
((h >> 8) & 0x0000FF00) | (h >> 24);
((h & 0x00FF0000) >> 8) | (h >> 24);
}
return h;
}
Expand All @@ -194,7 +194,7 @@ USHORT ntohsc(USHORT n)
BOOL GetUUID5(REFGUID rguid, CONST PBYTE name, DWORD namelen, LPGUID puuid)
{
BOOL bRet = FALSE;
CONST LPCWSTR pszAlgId = BCRYPT_SHA1_ALGORITHM;
LPCWSTR pszAlgId = BCRYPT_SHA1_ALGORITHM;
CONST DWORD dwDigestLen = 20;
CONST USHORT maskVersion = 0x5000;
GUID lguid = rguid;
Expand Down

0 comments on commit a24027f

Please sign in to comment.