summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Dbx_mmap_SA/Cryptors/RC4/src/cryptor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Dbx_mmap_SA/Cryptors/RC4/src/cryptor.cpp b/plugins/Dbx_mmap_SA/Cryptors/RC4/src/cryptor.cpp
index d41f3a9eb2..a673c11fe7 100644
--- a/plugins/Dbx_mmap_SA/Cryptors/RC4/src/cryptor.cpp
+++ b/plugins/Dbx_mmap_SA/Cryptors/RC4/src/cryptor.cpp
@@ -20,9 +20,9 @@ typedef struct{
} Cryptor;
typedef struct rc4_key
-{
- BYTE state[256];
- BYTE x;
+{
+ BYTE state[256];
+ BYTE x;
BYTE y;
} rc4_key;
@@ -111,7 +111,7 @@ void __stdcall DecryptMem(BYTE* data, int size, void* key)
rc4(data, size, (rc4_key*)key);
}
-Cryptor cryptor =
+Cryptor cryptor =
{
GenerateKey,
FreeKey,
@@ -127,7 +127,7 @@ Cryptor cryptor =
};
-__declspec(dllexport) Cryptor* GetCryptor()
+extern "C" __declspec(dllexport) Cryptor* GetCryptor()
{
return &cryptor;
-} \ No newline at end of file
+}