Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2014-01-06 12:44:07 +0400
committerUnderground78 <underground78@users.sourceforge.net>2014-01-10 02:14:30 +0400
commitb9da52150603dd66cac70013984ed69741163ddd (patch)
treec1bd55dbf19ad19c81b2a175978295602d33339e /src/filters/transform/VSFilter
parentc1da901a72dc57b4f6cb202c54d21efaa3e28a3c (diff)
Define `STRICT_TYPED_ITEMIDS` before including any shell headers for better type safety of IDLists.
Diffstat (limited to 'src/filters/transform/VSFilter')
-rw-r--r--src/filters/transform/VSFilter/DirectVobSubPropPage.cpp4
-rw-r--r--src/filters/transform/VSFilter/stdafx.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/src/filters/transform/VSFilter/DirectVobSubPropPage.cpp b/src/filters/transform/VSFilter/DirectVobSubPropPage.cpp
index d7a72094a..db0cf46dd 100644
--- a/src/filters/transform/VSFilter/DirectVobSubPropPage.cpp
+++ b/src/filters/transform/VSFilter/DirectVobSubPropPage.cpp
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2013 see Authors.txt
+ * (C) 2006-2014 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -1080,7 +1080,7 @@ bool CDVSPathsPPage::OnMessage(UINT uMsg, WPARAM wParam, LPARAM lParam)
bi.lParam = 0;
bi.iImage = 0;
- LPITEMIDLIST iil = SHBrowseForFolder(&bi);
+ PIDLIST_ABSOLUTE iil = SHBrowseForFolder(&bi);
if (iil) {
SHGetPathFromIDList(iil, pathbuff);
m_path.SetWindowText(pathbuff);
diff --git a/src/filters/transform/VSFilter/stdafx.h b/src/filters/transform/VSFilter/stdafx.h
index 94a311c34..367cef197 100644
--- a/src/filters/transform/VSFilter/stdafx.h
+++ b/src/filters/transform/VSFilter/stdafx.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2013 see Authors.txt
+ * (C) 2006-2014 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -23,6 +23,10 @@
#define _ATL_APARTMENT_THREADED
+#ifndef STRICT_TYPED_ITEMIDS
+#define STRICT_TYPED_ITEMIDS
+#endif
+
#include "../../../DSUtil/SharedInclude.h"
#include <afxwin.h>