summaryrefslogtreecommitdiff
path: root/winrt/mupdfwinrt/muctx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'winrt/mupdfwinrt/muctx.cpp')
-rw-r--r--winrt/mupdfwinrt/muctx.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/winrt/mupdfwinrt/muctx.cpp b/winrt/mupdfwinrt/muctx.cpp
index f855e1b3..1b30b31b 100644
--- a/winrt/mupdfwinrt/muctx.cpp
+++ b/winrt/mupdfwinrt/muctx.cpp
@@ -507,11 +507,9 @@ bool muctx::RequiresPassword(void)
return fz_needs_password(mu_doc);
}
-bool muctx::ApplyPassword(String^ password)
+bool muctx::ApplyPassword(char* password)
{
- /* Need to do String to char here */
- // return fz_authenticate_password(mu_doc, password) != 0;
- return 0;
+ return fz_authenticate_password(mu_doc, password);
}
String^ muctx::GetHTML(int page_num)