summaryrefslogtreecommitdiff
path: root/print/XPSDrvSmpl/src/common/pshndlr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'print/XPSDrvSmpl/src/common/pshndlr.cpp')
-rw-r--r--print/XPSDrvSmpl/src/common/pshndlr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/print/XPSDrvSmpl/src/common/pshndlr.cpp b/print/XPSDrvSmpl/src/common/pshndlr.cpp
index 989837be..90acda70 100644
--- a/print/XPSDrvSmpl/src/common/pshndlr.cpp
+++ b/print/XPSDrvSmpl/src/common/pshndlr.cpp
@@ -133,7 +133,7 @@ CPSHandler::CPSHandler(
cstrNSPrefix.Delete(iIndex, 1) > 0)
{
CStringXDW cstrOrgNamespaces;
- cstrOrgNamespaces.Format(szNSSelection, cstrNSPrefix, FRAMEWORK_URI);
+ cstrOrgNamespaces.Format(szNSSelection, static_cast<LPCWSTR>(cstrNSPrefix), FRAMEWORK_URI);
hr = m_pPrintDocument->setProperty(CComBSTR(szSelectNS), CComVariant(cstrOrgNamespaces));
}
@@ -1259,7 +1259,7 @@ Note:
The annotation for pbstrValue is intended to express that the BSTR may
be NULL when S_FALSE is returned, but not when S_OK is returned.
-
+
In any case, when a failure HRESULT is returned, all out parameter
annotations are ignored.
@@ -1593,7 +1593,7 @@ CPSHandler::GetPrefixFromURI(
// Construct the Root Query string
//
CStringXDW cstrRootQuery;
- cstrRootQuery.Format(szPTRootQuery, szTmpNS, m_bstrDocumentType);
+ cstrRootQuery.Format(szPTRootQuery, szTmpNS, static_cast<LPCWSTR>(m_bstrDocumentType));
//
// Find the PrintSchema element so we can retrieve the private namespace prefix