diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2007-09-02 21:12:36 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2007-09-02 21:12:36 +0400 |
commit | 40b35748f4d64d48888364127899202a4f9d53c0 (patch) | |
tree | ce79616b01b77ce3305892c3d4ea145d5dc04d18 /src/apps/mplayerc/OpenFileDlg.cpp | |
parent | 9a3c26fe2e7812748171b9e69aa853bb02a6ccb0 (diff) |
Modifications for x64 support
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@180 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/OpenFileDlg.cpp')
-rw-r--r-- | src/apps/mplayerc/OpenFileDlg.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/apps/mplayerc/OpenFileDlg.cpp b/src/apps/mplayerc/OpenFileDlg.cpp index 11d0eb8df..7aa928fdc 100644 --- a/src/apps/mplayerc/OpenFileDlg.cpp +++ b/src/apps/mplayerc/OpenFileDlg.cpp @@ -80,7 +80,11 @@ 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
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
|