Changeset 6177 for trunk/src/user32/user32.cpp
- Timestamp:
- Jul 5, 2001, 8:10:56 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/user32.cpp
r6162 r6177 1 /* $Id: user32.cpp,v 1.10 5 2001-07-04 06:39:01sandervl Exp $ */1 /* $Id: user32.cpp,v 1.106 2001-07-05 18:10:56 sandervl Exp $ */ 2 2 3 3 /* … … 976 976 HWND hDest; 977 977 LPWINHELP lpwh; 978 HGLOBAL hwh;979 978 HINSTANCE winhelp; 980 979 int size,dsize,nlen; 981 982 dprintf(("USER32: WinHelpA %s\n", lpszHelp)); 980 BOOL ret; 981 982 dprintf(("USER32: WinHelpA %x %s %d %x", hwnd, lpszHelp, uCommand, dwData)); 983 983 984 984 if(!WM_WINHELP) … … 1036 1036 nlen = 0; 1037 1037 size = sizeof(WINHELP) + nlen + dsize; 1038 #if 1 1039 hwh = GlobalAlloc(GMEM_SHARE,size); 1040 lpwh = (WINHELP*)GlobalLock(hwh); 1041 #else 1042 hwh = (HANDLE)_smalloc(size); 1043 lpwh = (WINHELP*)hwh; 1044 #endif 1038 1039 //allocate shared memory 1040 lpwh = (WINHELP*)_smalloc(size); 1045 1041 lpwh->size = size; 1046 1042 lpwh->command = uCommand; … … 1058 1054 } else 1059 1055 lpwh->ofsData = 0; 1060 GlobalUnlock(hwh); 1061 1062 return SendMessageA(hDest,WM_WINHELP,hwnd,hwh); 1056 1057 ret = SendMessageA(hDest,WM_WINHELP,hwnd,(LPARAM)lpwh); 1058 free(lpwh); 1059 return ret; 1063 1060 } 1064 1061 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.