Rev 482 | Rev 503 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 482 | Rev 492 | ||
---|---|---|---|
Line 65... | Line 65... | ||
65 | PlatformData *p = (PlatformData *)pb->platformData; |
65 | PlatformData *p = (PlatformData *)pb->platformData; |
66 | 66 | ||
67 | res = DialogBoxParam(hDllInstance,MAKEINTRESOURCE(ID_BUILDDLG), |
67 | res = DialogBoxParam(hDllInstance,MAKEINTRESOURCE(ID_BUILDDLG), |
68 | gdata->hWndMainDlg ? gdata->hWndMainDlg : (HWND)p->hwnd,builddlgproc,0); |
68 | gdata->hWndMainDlg ? gdata->hWndMainDlg : (HWND)p->hwnd,builddlgproc,0); |
69 | if (res == 0) { |
69 | if (res == 0) { |
70 | simplealert((TCHAR*)TEXT("DialogBoxParam invalid parent window handle")); |
70 | simplealert((TCHAR*)TEXT("DialogBoxParam invalid parent window handle")); // TODO (Not so important): TRANSLATE |
71 | } |
71 | } |
72 | if (res == -1) { |
72 | if (res == -1) { |
73 | TCHAR s[0x300]; |
73 | TCHAR s[0x300]; |
74 | xstrcpy(s, (TCHAR*)TEXT("DialogBoxParam failed: ")); |
74 | xstrcpy(s, (TCHAR*)TEXT("DialogBoxParam failed: ")); // TODO (Not so important): TRANSLATE |
75 | FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, s + xstrlen(s), 0x300 - (DWORD)xstrlen(s), NULL); |
75 | FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, s + xstrlen(s), 0x300 - (DWORD)xstrlen(s), NULL); |
76 | simplealert(&s[0]); |
76 | simplealert(&s[0]); |
77 | } |
77 | } |
78 | 78 | ||
79 | return res == IDOK; |
79 | return res == IDOK; |