From b172c4bbc75cdad0e8ccd22292aa671ba43cac45 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 18 Apr 2018 18:14:33 +0300 Subject: PLUGIN<> to half-automatically calculate the dll's g_hInstance and pass it inside --- plugins/CloudFile/src/Services/dropbox_service.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/CloudFile/src/Services/dropbox_service.cpp') diff --git a/plugins/CloudFile/src/Services/dropbox_service.cpp b/plugins/CloudFile/src/Services/dropbox_service.cpp index 34e779df1c..1dacf3112e 100644 --- a/plugins/CloudFile/src/Services/dropbox_service.cpp +++ b/plugins/CloudFile/src/Services/dropbox_service.cpp @@ -308,12 +308,14 @@ UINT CDropboxService::Upload(FileTransferParam *ftp) ///////////////////////////////////////////////////////////////////////////////////////// -struct CMPluginDropbox : public CMPluginBase +struct CMPluginDropbox : public PLUGIN { CMPluginDropbox() : - CMPluginBase(MODULE "/Dropbox") + PLUGIN(MODULE "/Dropbox") { RegisterProtocol(PROTOTYPE_PROTOCOL, (pfnInitProto)CDropboxService::Init, (pfnUninitProto)CDropboxService::UnInit); } } g_pluginDropbox; + +extern "C" _pfnCrtInit _pRawDllMain = &CMPluginDropbox::RawDllMain; -- cgit v1.2.3