Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginWbPassThrough.cpp

Issue 4842319220047872: Fix mime type detection (Closed)
Patch Set: Created April 29, 2014, 8:43 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginWbPassThrough.cpp
===================================================================
--- a/src/plugin/PluginWbPassThrough.cpp
+++ b/src/plugin/PluginWbPassThrough.cpp
@@ -133,14 +133,14 @@
CString boundDomain;
CString mimeType;
+ LPOLESTR mime[10];
if (pOIBindInfo)
{
ULONG resLen = 0;
- LPOLESTR mime = 0;
- pOIBindInfo->GetBindString(BINDSTRING_ACCEPT_MIMES, &mime, 1, &resLen);
+ pOIBindInfo->GetBindString(BINDSTRING_ACCEPT_MIMES, mime, 10, &resLen);
Oleksandr 2014/04/29 08:56:51 Apparently IE will report random mime type if ther
Eric 2014/05/01 15:04:53 This behavior belongs in a comment, since it's cer
if (mime && resLen > 0)
{
- mimeType.SetString(mime);
+ mimeType.SetString(mime[0]);
}
LPOLESTR bindToObject = 0;
pOIBindInfo->GetBindString(BINDSTRING_FLAG_BIND_TO_OBJECT, &bindToObject, 1, &resLen);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld