Subversion Repositories filter_foundry

Compare Revisions

Regard whitespace Rev 412 → Rev 411

/trunk/ui_build_win.c
59,20 → 59,7
}
 
Boolean builddialog(FilterRecordPtr pb){
INT_PTR res;
PlatformData *p = (PlatformData *)pb->platformData;
 
res = DialogBoxParam(hDllInstance,MAKEINTRESOURCE(ID_BUILDDLG),
gdata->hWndMainDlg ? gdata->hWndMainDlg : (HWND)p->hwnd,builddlgproc,0);
if (res == 0) {
simplealert("DialogBoxParam in valid parent window handle");
return DialogBoxParam(hDllInstance,MAKEINTRESOURCE(ID_BUILDDLG),
gdata->hWndMainDlg ? gdata->hWndMainDlg : (HWND)p->hwnd,builddlgproc,0) == IDOK;
}
if (res == -1) {
char s[100];
strcpy(s, "DialogBoxParam failed: ");
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, s + strlen(s), 0x100, NULL);
dbg(s);
}
 
return res == IDOK;
}