Changeset 331
- Timestamp:
- Jul 25, 2006, 8:46:38 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/dll/winlist.c ¶
r130 r331 7 7 8 8 Copyright (c) 1993-97 M. Kimes 9 Copyright (c) 2005 Steven H.Levine9 Copyright (c) 2005, 2006 Steven H.Levine 10 10 11 11 23 May 05 SHL Use QWL_USER 12 22 Jul 06 SHL Check more run time errors 12 13 13 14 ***********************************************************************/ … … 15 16 #define INCL_DOS 16 17 #define INCL_WIN 17 18 18 #include <os2.h> 19 19 20 #include <stdarg.h> 20 21 #include <stdio.h> … … 22 23 #include <string.h> 23 24 #include <ctype.h> 25 24 26 #include "fm3dll.h" 25 27 #include "fm3dlg.h" 26 28 27 29 #pragma data_seg(DATA1) 30 31 static PSZ pszSrcFile = __FILE__; 32 28 33 #pragma alloc_text(WINLIST,WindowList,WinListDlgProc) 29 34 30 35 MRESULT EXPENTRY WinListDlgProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2) 31 36 { 37 SHORT sSelect; 38 32 39 static HWND Me = (HWND)0; 33 SHORT sSelect;34 40 35 41 switch(msg) { 36 42 case WM_INITDLG: 37 if (Me || !mp2) {38 if (Me)43 if (Me || !mp2) { 44 if (Me) 39 45 PostMsg(Me,UM_FOCUSME,MPVOID,MPVOID); 40 46 WinDismissDlg(hwnd,0); … … 77 83 (LONG)sizeof(SWENTRY); 78 84 /* Allocate memory for list */ 79 if((pswb = malloc((unsigned)ulSize)) != NULL) { 85 pswb = xmalloc((unsigned)ulSize,pszSrcFile,__LINE__); 86 if (pswb) { 80 87 /* Put the info in the list */ 81 88 ulcEntries = WinQuerySwitchList(0,pswb,
Note:
See TracChangeset
for help on using the changeset viewer.