diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-03 15:57:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-03 15:57:14 +0000 |
commit | cd4e43a5af4dcf660969bc5abada0d97cfd0cd03 (patch) | |
tree | 2cb7da25499aa1258196b6a2dc80346cfe40a2f1 /plugins/TabSRMM | |
parent | 23617c95e41dc21347d4957c29fe5989a36e2a85 (diff) |
version related code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@7478 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/msgs.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index fb7fe23bb8..9e79d580cc 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -201,14 +201,11 @@ static INT_PTR GetMessageWindowFlags(WPARAM wParam, LPARAM lParam) if (hwndTarget == 0)
hwndTarget = M.FindWindow((HANDLE)wParam);
- if (hwndTarget) {
- TWindowData *dat = (TWindowData*)GetWindowLongPtr(hwndTarget, GWLP_USERDATA);
- if (dat)
- return (dat->dwFlags);
- else
- return 0;
- } else
+ if (hwndTarget == 0)
return 0;
+
+ TWindowData *dat = (TWindowData*)GetWindowLongPtr(hwndTarget, GWLP_USERDATA);
+ return (dat) ? dat->dwFlags : 0;
}
/*
|