VirtualBox

Ignore:
Timestamp:
Aug 4, 2016 11:41:09 PM (8 years ago)
Author:
vboxsync
Message:

GA/NT/Graphics: warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispMpLogger.cpp

    r62679 r63019  
    103103}
    104104
    105 VBOXDISPMPLOGGER_DECL(int) VBoxDispMpLoggerInit()
     105VBOXDISPMPLOGGER_DECL(int) VBoxDispMpLoggerInit(void)
    106106{
    107107    PVBOXDISPMPLOGGER pLogger = vboxDispMpLoggerGet();
     
    111111}
    112112
    113 VBOXDISPMPLOGGER_DECL(int) VBoxDispMpLoggerTerm()
     113VBOXDISPMPLOGGER_DECL(int) VBoxDispMpLoggerTerm(void)
    114114{
    115115    if (ASMAtomicCmpXchgU32((volatile uint32_t *)&g_VBoxDispMpLogger.enmState, VBOXDISPMPLOGGER_STATE_UNINITIALIZING, VBOXDISPMPLOGGER_STATE_INITIALIZED))
     
    126126}
    127127
    128 VBOXDISPMPLOGGER_DECL(void) VBoxDispMpLoggerLog(char * szString)
     128VBOXDISPMPLOGGER_DECL(void) VBoxDispMpLoggerLog(const char *pszString)
    129129{
    130130    PVBOXDISPMPLOGGER pLogger = vboxDispMpLoggerGet();
     
    136136    if (hr == S_OK)
    137137    {
    138         uint32_t cbString = (uint32_t)strlen(szString) + 1;
     138        uint32_t cbString = (uint32_t)strlen(pszString) + 1;
    139139        uint32_t cbCmd = RT_OFFSETOF(VBOXDISPIFESCAPE_DBGPRINT, aStringBuf[cbString]);
    140140        PVBOXDISPIFESCAPE_DBGPRINT pCmd = (PVBOXDISPIFESCAPE_DBGPRINT)RTMemAllocZ(cbCmd);
     
    142142        {
    143143            pCmd->EscapeHdr.escapeCode = VBOXESC_DBGPRINT;
    144             memcpy(pCmd->aStringBuf, szString, cbString);
     144            memcpy(pCmd->aStringBuf, pszString, cbString);
    145145
    146146            D3DKMT_ESCAPE EscapeData = {0};
     
    173173}
    174174
    175 VBOXDISPMPLOGGER_DECL(void) VBoxDispMpLoggerLogF(char * szString, ...)
     175VBOXDISPMPLOGGER_DECL(void) VBoxDispMpLoggerLogF(const char *pszString, ...)
    176176{
    177177    PVBOXDISPMPLOGGER pLogger = vboxDispMpLoggerGet();
     
    181181    char szBuffer[4096] = {0};
    182182    va_list pArgList;
    183     va_start(pArgList, szString);
    184     _vsnprintf(szBuffer, sizeof(szBuffer) / sizeof(szBuffer[0]), szString, pArgList);
     183    va_start(pArgList, pszString);
     184    _vsnprintf(szBuffer, sizeof(szBuffer) / sizeof(szBuffer[0]), pszString, pArgList);
    185185    va_end(pArgList);
    186186
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette