diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-11 22:23:57 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-11 22:24:06 +0300 |
commit | d958e3fb847813075cc059bd5a7aa28252982268 (patch) | |
tree | d9c02a7ddee830628248219e9c83c7de3c335140 /plugins/MirFox/src | |
parent | c8e1c429321ed8aa2efce0fc00b6dfd08f1b2735 (diff) |
strong typization - better typization
Diffstat (limited to 'plugins/MirFox/src')
-rw-r--r-- | plugins/MirFox/src/MirandaUtils.cpp | 7 | ||||
-rw-r--r-- | plugins/MirFox/src/MirandaUtils.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/plugins/MirFox/src/MirandaUtils.cpp b/plugins/MirFox/src/MirandaUtils.cpp index dfaf7d73f0..4ce2bf8165 100644 --- a/plugins/MirFox/src/MirandaUtils.cpp +++ b/plugins/MirFox/src/MirandaUtils.cpp @@ -20,7 +20,7 @@ void MirandaUtils::netlibLog(const wchar_t* szText){ void MirandaUtils::netlibLog_int(const wchar_t* szText){
if (netlibHandle) {
- CallService(MS_NETLIB_LOGW, (WPARAM)netlibHandle, (LPARAM)szText);
+ Netlib_LogfW(netlibHandle, szText);
}
#ifdef _DEBUG
OutputDebugString(szText);
@@ -29,13 +29,12 @@ void MirandaUtils::netlibLog_int(const wchar_t* szText){ void MirandaUtils::netlibRegister(){
// Register netlib user for logging function
- NETLIBUSER nlu = { 0 };
- nlu.cbSize = sizeof(nlu);
+ NETLIBUSER nlu = {};
nlu.flags = NUF_UNICODE | NUF_NOOPTIONS;
nlu.szSettingsModule = PLUGIN_DB_ID;
nlu.ptszDescriptiveName = TranslateT("MirFox log");
- netlibHandle = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu);
+ netlibHandle = Netlib_RegisterUser(&nlu);
}
void MirandaUtils::netlibUnregister(){
diff --git a/plugins/MirFox/src/MirandaUtils.h b/plugins/MirFox/src/MirandaUtils.h index f08b90da5f..47ee0ed1db 100644 --- a/plugins/MirFox/src/MirandaUtils.h +++ b/plugins/MirFox/src/MirandaUtils.h @@ -91,7 +91,7 @@ private: static void ForceForegroundWindow(HWND hWnd);
- HANDLE netlibHandle;
+ HNETLIBUSER netlibHandle;
std::wstring profileName;
std::wstring displayName;
|