зеркало из https://github.com/mozilla/pjs.git
fix for bug #20940
This commit is contained in:
Родитель
5400010341
Коммит
da55b42344
|
@ -43,13 +43,13 @@ WIDGET* SetGlobal(CString theName, CString theValue)
|
|||
return w;
|
||||
}
|
||||
|
||||
extern "C" __declspec(dllexport)
|
||||
char *GetGlobal(CString theName)
|
||||
__declspec(dllexport)
|
||||
CString GetGlobal(CString theName)
|
||||
{
|
||||
WIDGET *w = findWidget(theName);
|
||||
|
||||
if (w)
|
||||
return (char *) (LPCTSTR) w->value;
|
||||
return (w->value);
|
||||
|
||||
return "";
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ extern __declspec(dllimport) int GlobalArrayIndex;
|
|||
extern __declspec(dllimport) BOOL IsSameCache;
|
||||
|
||||
|
||||
extern "C" __declspec(dllimport) char * GetGlobal(CString theName);
|
||||
__declspec(dllimport) CString GetGlobal(CString theName);
|
||||
extern "C" __declspec(dllimport) WIDGET* SetGlobal(CString theName, CString theValue);
|
||||
extern "C" __declspec(dllimport) WIDGET* findWidget(CString theName);
|
||||
extern "C" __declspec(dllimport) void CopyDir(CString from, CString to, LPCTSTR extension, int overwrite);
|
||||
|
|
Загрузка…
Ссылка в новой задаче