Browse Source

Fix Visual Studio builds

pull/898/head
Anders Jenbo 5 years ago
parent
commit
28c1832544
  1. 4
      Source/codec.cpp
  2. 4
      Source/codec.h

4
Source/codec.cpp

@ -19,7 +19,7 @@ typedef struct CodecSignature {
#define BLOCKSIZE 64 #define BLOCKSIZE 64
int codec_decode(BYTE *pbSrcDst, DWORD size, char *pszPassword) int codec_decode(BYTE *pbSrcDst, DWORD size, const char *pszPassword)
{ {
char buf[128]; char buf[128];
char dst[SHA1HashSize]; char dst[SHA1HashSize];
@ -102,7 +102,7 @@ DWORD codec_get_encoded_len(DWORD dwSrcBytes)
return dwSrcBytes + sizeof(CodecSignature); return dwSrcBytes + sizeof(CodecSignature);
} }
void codec_encode(BYTE *pbSrcDst, DWORD size, int size_64, char *pszPassword) void codec_encode(BYTE *pbSrcDst, DWORD size, int size_64, const char *pszPassword)
{ {
char buf[128]; char buf[128];
char tmp[SHA1HashSize]; char tmp[SHA1HashSize];

4
Source/codec.h

@ -12,10 +12,10 @@ DEVILUTION_BEGIN_NAMESPACE
extern "C" { extern "C" {
#endif #endif
int codec_decode(BYTE *pbSrcDst, DWORD size, char *pszPassword); int codec_decode(BYTE *pbSrcDst, DWORD size, const char *pszPassword);
void codec_init_key(int unused, char *pszPassword); void codec_init_key(int unused, char *pszPassword);
DWORD codec_get_encoded_len(DWORD dwSrcBytes); DWORD codec_get_encoded_len(DWORD dwSrcBytes);
void codec_encode(BYTE *pbSrcDst, DWORD size, int size_64, char *pszPassword); void codec_encode(BYTE *pbSrcDst, DWORD size, int size_64, const char *pszPassword);
#ifdef __cplusplus #ifdef __cplusplus
} }

Loading…
Cancel
Save