From 264048f91b5767bd7b262f91eb3aa657078e669e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 22 Apr 2013 07:47:20 +0000 Subject: missing declaration git-svn-id: http://svn.miranda-ng.org/main/trunk@4504 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_mmap_SA/Cryptors/RC4/src/cryptor.cpp | 12 ++++++------ 1 file 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 +} -- cgit v1.2.3