diff options
-rw-r--r-- | o3d/plugin/npapi_host_control/win/stream_operation.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/o3d/plugin/npapi_host_control/win/stream_operation.cc b/o3d/plugin/npapi_host_control/win/stream_operation.cc index 599c93d..a72d1a5 100644 --- a/o3d/plugin/npapi_host_control/win/stream_operation.cc +++ b/o3d/plugin/npapi_host_control/win/stream_operation.cc @@ -495,7 +495,10 @@ HRESULT StreamOperation::OpenURL(NPPluginProxy *owning_plugin, URL_COMPONENTS components = { sizeof(URL_COMPONENTS) }; if (!InternetCrackUrl(url, 0, 0, &components)) return E_INVALIDARG; - if (components.nScheme == INTERNET_SCHEME_UNKNOWN) { + if (components.nScheme != INTERNET_SCHEME_FILE && + components.nScheme != INTERNET_SCHEME_FTP && + components.nScheme != INTERNET_SCHEME_HTTP && + components.nScheme != INTERNET_SCHEME_HTTPS) { return E_INVALIDARG; } |