зеркало из https://github.com/mozilla/gecko-dev.git
Bug 714115 - CF_HTML not being used when comma as a decimal point. r=roc
This commit is contained in:
Родитель
2ca829d9ec
Коммит
4598d8aa81
|
@ -715,11 +715,11 @@ nsClipboard :: FindPlatformHTML ( IDataObject* inDataObject, UINT inIndex, void*
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
float vers = 0.0;
|
char version[8] = { 0 };
|
||||||
PRInt32 startOfData = 0;
|
PRInt32 startOfData = 0;
|
||||||
PRInt32 endOfData = 0;
|
PRInt32 endOfData = 0;
|
||||||
int numFound = sscanf((char*)*outData, "Version:%f\nStartHTML:%d\nEndHTML:%d",
|
int numFound = sscanf((char*)*outData, "Version:%7s\nStartHTML:%d\nEndHTML:%d",
|
||||||
&vers, &startOfData, &endOfData);
|
version, &startOfData, &endOfData);
|
||||||
|
|
||||||
if (numFound != 3 || startOfData < -1 || endOfData < -1) {
|
if (numFound != 3 || startOfData < -1 || endOfData < -1) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче