зеркало из https://github.com/mozilla/pjs.git
Bug 328306 Open/Save dialogs no longer work on Win9x/Me/NT4 even if cairo is disabled. patch by Masatoshi Kimura (emk) <VYV03354@nifty.ne.jp> r+sr=roc
This commit is contained in:
Родитель
f9f4657efb
Коммит
a9cf0ad13b
|
@ -180,9 +180,11 @@ NS_IMETHODIMP nsFilePicker::ShowW(PRInt16 *aReturnVal)
|
|||
|
||||
OPENFILENAMEW ofn;
|
||||
memset(&ofn, 0, sizeof(ofn));
|
||||
|
||||
#if _WIN32_WINNT >= 0x0500
|
||||
ofn.lStructSize = OPENFILENAME_SIZE_VERSION_400;
|
||||
#else
|
||||
ofn.lStructSize = sizeof(ofn);
|
||||
|
||||
#endif
|
||||
nsString filterBuffer = mFilterList;
|
||||
|
||||
if (!initialDir.IsEmpty()) {
|
||||
|
|
|
@ -419,7 +419,11 @@ BOOL CallOpenSaveFileNameA(LPOPENFILENAMEW aFileNameW, BOOL aOpen)
|
|||
char tempNameA[MAX_PATH+1];
|
||||
|
||||
memset(&ofnA, 0, sizeof(OPENFILENAMEA));
|
||||
#if _WIN32_WINNT >= 0x0500
|
||||
ofnA.lStructSize = OPENFILENAME_SIZE_VERSION_400;
|
||||
#else
|
||||
ofnA.lStructSize = sizeof(OPENFILENAME);
|
||||
#endif
|
||||
ofnA.hwndOwner = aFileNameW->hwndOwner;
|
||||
ofnA.hInstance = aFileNameW->hInstance;
|
||||
if (aFileNameW->lpstrFilter) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче