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:
masayuki%d-toybox.com 2006-02-25 09:30:26 +00:00
Родитель f9f4657efb
Коммит a9cf0ad13b
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -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) {