Increase maximum allowable KDM file size.
[dcpomatic.git] / src / wx / content_menu.cc
index 6da219f0f3dfeb16177c594dfc292f5f10bae7bf..0240a8c3372e2789821fb5db0e23fca8be4e2db5 100644 (file)
@@ -367,7 +367,7 @@ ContentMenu::kdm ()
 
        if (d->ShowModal() == wxID_OK) {
                try {
-                       dcp->add_kdm (dcp::EncryptedKDM (dcp::file_to_string (wx_to_std (d->GetPath ()))));
+                       dcp->add_kdm (dcp::EncryptedKDM (dcp::file_to_string (wx_to_std (d->GetPath ()), MAX_KDM_SIZE)));
                } catch (exception& e) {
                        error_dialog (_parent, wxString::Format (_("Could not load KDM (%s)"), e.what ()));
                        d->Destroy ();