Skip to content

Commit f6acecc

Browse files
committed
Fixing use of decrypt on phone 8.0.
1 parent e6a70e4 commit f6acecc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Release/include/cpprest/web_utilities.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,11 @@ class credentials
120120
utility::string_t password() const
121121
{
122122
#if defined(_MS_WINDOWS)
123+
#if defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP && _MSC_VER < 1800
124+
return m_password;
125+
#else
123126
return utility::string_t(*m_password.decrypt());
127+
#endif
124128
#else
125129
throw std::runtime_error("Credentials are not supported on this platform yet.");
126130
#endif

0 commit comments

Comments
 (0)