Changeset 21730 for branches/gcc-kmk/src
- Timestamp:
- Oct 21, 2011, 4:52:51 PM (14 years ago)
- Location:
- branches/gcc-kmk/src/kernel32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/kernel32/HandleManager.cpp
r21720 r21730 454 454 *****************************************************************************/ 455 455 456 static ULONG INLINE_HMHandleQuery(HANDLE hHandle)456 INLINE ULONG _HMHandleQuery(HANDLE hHandle) 457 457 { 458 458 if (hHandle >= MAX_OS2_HMHANDLES) /* check the table range */ … … 2133 2133 * GetFileSizeEx (KERNEL32.@) 2134 2134 */ 2135 #define INVALID_FILE_SIZE ((DWORD)~0UL)2136 2135 BOOL WINAPI GetFileSizeEx( HANDLE hFile, PLARGE_INTEGER lpFileSize ) 2137 2136 { -
branches/gcc-kmk/src/kernel32/conprop.cpp
r5308 r21730 70 70 ULONG ulID; // Resource ID for dialog page 71 71 PFNWP wpDlgProc; // dialog window procedure 72 P SZszStatusLineText; // Text to go on status line73 P SZszTabText; // Text to go on major tab72 PCSZ szStatusLineText; // Text to go on status line 73 PCSZ szTabText; // Text to go on major tab 74 74 ULONG idFocus; // ID of the control to get the focus first 75 75 BOOL fParent; // Is this a Parent page with minor pages … … 92 92 /**********************************************************************/ 93 93 94 static VOID ErrorMsg( PSZ szFormat,95 ... 94 static VOID ErrorMsg(PCSZ szFormat, 95 ...); 96 96 97 97 … … 195 195 }; 196 196 197 static P SZ priorities[] = {"idle", "normal", "critical", "server"};197 static PCSZ priorities[] = {"idle", "normal", "critical", "server"}; 198 198 #define NUMPRIORITIES 4 199 199 … … 216 216 #define MESSAGE_SIZE 1024 217 217 218 static VOID ErrorMsg( PSZ szFormat,219 ... 218 static VOID ErrorMsg(PCSZ szFormat, 219 ...) 220 220 { 221 221 PSZ szMsg; -
branches/gcc-kmk/src/kernel32/environ.cpp
r21355 r21730 41 41 //list of important OS/2 environment variables that must not be removed 42 42 //when creating a new process 43 static c har *lpReservedEnvStrings[] = {43 static const char *lpReservedEnvStrings[] = { 44 44 "HOSTNAME", 45 45 "TZ", … … 76 76 //TEMP is a standard environment variable in Windows, but is not always 77 77 //present in OS/2, so make sure it is. 78 if(GetEnvironmentVariableA("TEMP", szVar, sizeof(szVar)) == 0) 78 if(GetEnvironmentVariableA("TEMP", szVar, sizeof(szVar)) == 0) 79 79 { 80 80 if(GetEnvironmentVariableA("TMP", szVar, sizeof(szVar)) == 0) { … … 226 226 * If the function fails, the return value is zero 227 227 * Remark : 228 * Status : 228 * Status : 229 229 * 230 230 *****************************************************************************/ … … 254 254 if ((p = strchr( src + 1, '%' )) != NULL) 255 255 { 256 len = p - src - 1; /* Length of the variable name */ 256 len = p - src - 1; /* Length of the variable name */ 257 257 if ((var = ENV_FindVariable( GetEnvironmentStringsA(), 258 258 src + 1, len )) != NULL) … … 309 309 * If the function fails, the return value is zero 310 310 * Remark : 311 * Status : 311 * Status : 312 312 * 313 313 *****************************************************************************/ … … 340 340 char *tmpenvnew, *newenv; 341 341 int newsize = 0, len; 342 342 343 343 dprintf(("New environment:")); 344 344 while(*tmpenvold) { … … 374 374 tmpenvold += len+1; 375 375 } 376 int i; 376 377 for(i=0;i<sizeof(lpReservedEnvStrings)/sizeof(char *);i++) { 377 378 if(!ENV_FindVariable(lpEnvironment, lpReservedEnvStrings[i], strlen(lpReservedEnvStrings[i]))) { -
branches/gcc-kmk/src/kernel32/hmcomm.cpp
r21302 r21730 233 233 { 234 234 OSLibDosClose(pHMHandleData->hHMHandle); 235 delete pHMHandleData->lpHandlerData;235 delete (PHMDEVCOMDATA)pHMHandleData->lpHandlerData; 236 236 return rc; 237 237 } … … 274 274 fail: 275 275 276 delete pHMHandleData->lpHandlerData;276 delete (PHMDEVCOMDATA)pHMHandleData->lpHandlerData; 277 277 OSLibDosClose(pHMHandleData->hHMHandle); 278 278 return ret; … … 300 300 BOOL HMDeviceCommClass::CloseHandle(PHMHANDLEDATA pHMHandleData) 301 301 { 302 PHMDEVCOMDATA pDevData = (PHMDEVCOMDATA)pHMHandleData->lpHandlerData;303 302 dprintf(("HMComm: Serial communication port close request")); 304 303 305 delete pHMHandleData->lpHandlerData;304 delete (PHMDEVCOMDATA)pHMHandleData->lpHandlerData; 306 305 return OSLibDosClose(pHMHandleData->hHMHandle); 307 306 } -
branches/gcc-kmk/src/kernel32/wprocess.cpp
r21720 r21730 299 299 StartupInfo.cbReserved2 = NULL; 300 300 if (!StartupInfo.lpDesktop) 301 StartupInfo.lpDesktop = "Desktop";301 StartupInfo.lpDesktop = (LPSTR)"Desktop"; 302 302 if (!StartupInfo.lpTitle) 303 StartupInfo.lpTitle = "Title";303 StartupInfo.lpTitle = (LPSTR)"Title"; 304 304 ProcessENVDB.hStdin = StartupInfo.hStdInput = GetStdHandle(STD_INPUT_HANDLE); 305 305 ProcessENVDB.hStdout = StartupInfo.hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE); … … 2987 2987 2988 2988 lpmodinfo->SizeOfImage = winmod->getImageSize(); 2989 lpmodinfo->EntryPoint = winmod->getEntryPoint();2989 lpmodinfo->EntryPoint = (LPVOID)winmod->getEntryPoint(); 2990 2990 lpmodinfo->lpBaseOfDll = (void*)hModule; 2991 2991
Note:
See TracChangeset
for help on using the changeset viewer.