Rev 433 | Rev 454 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 433 | Rev 444 | ||
---|---|---|---|
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(_strdup("DialogBoxParam in valid parent window handle")); |
70 | simplealert((TCHAR*)TEXT("DialogBoxParam in valid parent window handle")); |
71 | } |
71 | } |
72 | if (res == -1) { |
72 | if (res == -1) { |
73 | char s[100]; |
73 | TCHAR s[0x300]; |
74 | strcpy(s, "DialogBoxParam failed: "); |
74 | xstrcpy(s, (TCHAR*)TEXT("DialogBoxParam failed: ")); |
75 | FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, s + strlen(s), 0x100, NULL); |
75 | FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, s + xstrlen(s), 0x300 - xstrlen(s), NULL); |
76 | dbg(s); |
76 | dbg(&s[0]); |
77 | } |
77 | } |
78 | 78 | ||
79 | return res == IDOK; |
79 | return res == IDOK; |
80 | } |
80 | } |