Ignore:
Timestamp:
Oct 18, 2011, 9:16:41 PM (14 years ago)
Author:
dmik
Message:

Use const char * for arguments accepting literal strings.

This is more correct and also clears GCC warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/kernel32/exceptions.cpp

    r21662 r21717  
    756756    }
    757757
    758     PSZ    pszExceptionName = "<unknown>";        /* points to name/type excpt */
     758    PCSZ   pszExceptionName = "<unknown>";        /* points to name/type excpt */
    759759    APIRET rc               = XCPT_CONTINUE_SEARCH;        /* excpt-dep.  code */
    760760    BOOL   fExcptSoftware   = FALSE;         /* software/hardware gen. exceptn */
     
    11811181
    11821182            if(lpszExeName) {
    1183                 DosWrite(hFile, "\n", 2, &ulBytesWritten);
     1183                DosWrite(hFile, (PVOID)"\n", 2, &ulBytesWritten);
    11841184                DosWrite(hFile, lpszExeName, strlen(lpszExeName), &ulBytesWritten);
    1185                 DosWrite(hFile, "\n", 2, &ulBytesWritten);
     1185                DosWrite(hFile, (PVOID)"\n", 2, &ulBytesWritten);
    11861186            }
    11871187        }
Note: See TracChangeset for help on using the changeset viewer.