Skip to content

Commit

Permalink
Prettify codec_get_encoded_len.
Browse files Browse the repository at this point in the history
  • Loading branch information
Predelnik authored and AJenbo committed May 18, 2019
1 parent 9160d65 commit bcacad7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Source/codec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ void codec_init_key(int unused, char *pszPassword)
// 4035DB: using guessed type char var_58[64];
// 4035DB: using guessed type char dst[20];

int codec_get_encoded_len(int dwSrcBytes)
DWORD codec_get_encoded_len(DWORD dwSrcBytes)
{
if (dwSrcBytes & 0x3F)
dwSrcBytes += 64 - (dwSrcBytes & 0x3F);
if (dwSrcBytes % 64 != 0)
dwSrcBytes += 64 - (dwSrcBytes % 64);
return dwSrcBytes + 8;
}

Expand Down
2 changes: 1 addition & 1 deletion Source/codec.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

int codec_decode(BYTE *pbSrcDst, DWORD size, char *pszPassword);
void codec_init_key(int unused, char *pszPassword);
int codec_get_encoded_len(int dwSrcBytes);
DWORD codec_get_encoded_len(DWORD dwSrcBytes);
void codec_encode(void *pbSrcDst, int size, int size_64, char *pszPassword);

#endif /* __CODEC_H__ */

0 comments on commit bcacad7

Please sign in to comment.