зеркало из https://github.com/mozilla/pjs.git
fix tree bustage on mac
This commit is contained in:
Родитель
f497601f0c
Коммит
906f82ef14
|
@ -5441,11 +5441,17 @@ SI_RestoreOldSignonData
|
||||||
data = (si_SignonDataStruct *) XP_ListNextObject(data_ptr);
|
data = (si_SignonDataStruct *) XP_ListNextObject(data_ptr);
|
||||||
while((data = (si_SignonDataStruct *) XP_ListNextObject(data_ptr))!=0) {
|
while((data = (si_SignonDataStruct *) XP_ListNextObject(data_ptr))!=0) {
|
||||||
if (data->isPassword) {
|
if (data->isPassword) {
|
||||||
|
#ifdef XP_MAC
|
||||||
|
StrAllocCopy(
|
||||||
|
(char *)form_element->element_data->ele_text.default_text,
|
||||||
|
data->value);
|
||||||
|
#else
|
||||||
char* default_text =
|
char* default_text =
|
||||||
(char*)(form_element->element_data->ele_text.default_text);
|
(char*)(form_element->element_data->ele_text.default_text);
|
||||||
StrAllocCopy(default_text, data->value);
|
StrAllocCopy(default_text, data->value);
|
||||||
form_element->element_data->ele_text.default_text =
|
form_element->element_data->ele_text.default_text =
|
||||||
(unsigned long *)default_text;
|
(unsigned long *)default_text;
|
||||||
|
#endif
|
||||||
si_unlock_signon_list();
|
si_unlock_signon_list();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -5471,11 +5477,17 @@ SI_RestoreOldSignonData
|
||||||
while((data = (si_SignonDataStruct *) XP_ListNextObject(data_ptr))!=0) {
|
while((data = (si_SignonDataStruct *) XP_ListNextObject(data_ptr))!=0) {
|
||||||
if(XP_STRCMP(data->name,
|
if(XP_STRCMP(data->name,
|
||||||
(char *)form_element->element_data->ele_text.name)==0) {
|
(char *)form_element->element_data->ele_text.name)==0) {
|
||||||
|
#ifdef XP_MAC
|
||||||
|
StrAllocCopy(
|
||||||
|
(char *)form_element->element_data->ele_text.default_text,
|
||||||
|
data->value);
|
||||||
|
#else
|
||||||
char* default_text =
|
char* default_text =
|
||||||
(char*)(form_element->element_data->ele_text.default_text);
|
(char*)(form_element->element_data->ele_text.default_text);
|
||||||
StrAllocCopy(default_text, data->value);
|
StrAllocCopy(default_text, data->value);
|
||||||
form_element->element_data->ele_text.default_text =
|
form_element->element_data->ele_text.default_text =
|
||||||
(unsigned long *)default_text;
|
(unsigned long *)default_text;
|
||||||
|
#endif
|
||||||
si_unlock_signon_list();
|
si_unlock_signon_list();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче