diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2009-04-01 23:28:55 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2009-04-01 23:28:55 +0400 |
commit | 960013c687049898e9e72181aa673808fc5d5a1d (patch) | |
tree | 6b3cdc81c57853c6129b1daac929c99ee54e1e4c /src/apps/mplayerc/OpenFileDlg.cpp | |
parent | 8d7680fce206fbeb0b00f47d33aa68d07cbcfa9e (diff) |
Fixed : Improper usage of SetWindowLong() (bug # 2725186)
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1030 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/OpenFileDlg.cpp')
-rw-r--r-- | src/apps/mplayerc/OpenFileDlg.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/apps/mplayerc/OpenFileDlg.cpp b/src/apps/mplayerc/OpenFileDlg.cpp index 0c297e743..fa9fd13e2 100644 --- a/src/apps/mplayerc/OpenFileDlg.cpp +++ b/src/apps/mplayerc/OpenFileDlg.cpp @@ -80,11 +80,7 @@ BOOL COpenFileDlg::OnInitDialog() {
CFileDialog::OnInitDialog();
-#ifdef _WIN64
- m_wndProc = (WNDPROC)SetWindowLong(GetParent()->m_hWnd, GWLP_WNDPROC , (LONG)WindowProcNew);
-#else
- m_wndProc = (WNDPROC)SetWindowLong(GetParent()->m_hWnd, GWL_WNDPROC, (LONG)WindowProcNew);
-#endif
+ m_wndProc = (WNDPROC)SetWindowLongPtr(GetParent()->m_hWnd, GWLP_WNDPROC , (LONG_PTR)WindowProcNew);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
|