Changeset 352 for trunk/dll/mainwnd2.c
- Timestamp:
- Jul 26, 2006, 9:35:45 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/dll/mainwnd2.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/mainwnd2.c
r299 r352 14 14 02 Jan 06 SHL Use QWL_USER more 15 15 02 Jan 06 SHL Map IDM_WINDOWDLG to match IBM_TWODIRS 16 17 Jul 06 SHL Use Runtime_Error 16 17 17 18 ***********************************************************************/ … … 20 21 #define INCL_WIN 21 22 #define INCL_GPI 22 23 23 #include <os2.h> 24 24 25 #include <stdlib.h> 25 26 #include <stdio.h> … … 44 45 HWND hwndMax; 45 46 } PERSON1DATA; 47 48 static PSZ pszSrcFile = __FILE__; 46 49 47 50 #pragma alloc_text(PERSON11,MainFrameWndProc2,MainWndProc2) … … 515 518 COMPARE *cmp; 516 519 517 cmp = malloc(sizeof(COMPARE)); 518 if (cmp) 519 { 520 memset(cmp, 0, sizeof(COMPARE)); 520 cmp = xmallocz(sizeof(COMPARE),pszSrcFile,__LINE__); 521 if (cmp) { 521 522 cmp -> size = sizeof(COMPARE); 522 523 strcpy(cmp -> leftdir, wa.szCurrentPath1); … … 731 732 if (!hwndCnr) 732 733 { 733 DosBeep(50, 100);734 Runtime_Error(pszSrcFile, __LINE__, "no window"); 734 735 break; 735 736 } … … 817 818 WinSetWindowUShort(hwnd, QWL_USER + 12, 0); 818 819 WinSetWindowUShort(hwnd, QWL_USER + 16, 0); 819 if (_beginthread(MakeMainObjWin, 820 NULL, 821 245760, 822 MPVOID) == -1) 823 { 824 PostMsg(hwnd, 825 WM_CLOSE, 826 MPVOID, 827 MPVOID); 820 if (_beginthread(MakeMainObjWin,NULL,245760,MPVOID) == -1) { 821 Runtime_Error(pszSrcFile, __LINE__, GetPString(IDS_COULDNTSTARTTHREADTEXT)); 822 PostMsg(hwnd,WM_CLOSE,MPVOID,MPVOID); 828 823 return 0; 829 824 } … … 831 826 DosSleep(64); 832 827 833 pd = malloc(sizeof(PERSON1DATA));828 pd = xmallocz(sizeof(PERSON1DATA),pszSrcFile,__LINE__); 834 829 if (!pd) 835 830 WinDestroyWindow(WinQueryWindow(hwnd, QW_PARENT)); 836 else 837 { 838 memset(pd, 0, sizeof(PERSON1DATA)); 831 else { 839 832 pd -> size = sizeof(PERSON1DATA); 840 833 WinSetWindowPtr(hwnd, QWL_USER + 4, (PVOID)pd);
Note:
See TracChangeset
for help on using the changeset viewer.
