VirtualBox

Ignore:
Timestamp:
Nov 30, 2010 1:14:14 PM (14 years ago)
Author:
vboxsync
Message:

IPRT: Visual C++ warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/tls-win.cpp

    r28800 r34507  
    6969    if (iTls == NIL_RTTLS)
    7070        return VINF_SUCCESS;
    71     if (TlsFree(iTls))
     71    if (TlsFree((DWORD)iTls))
    7272        return VINF_SUCCESS;
    7373    return RTErrConvertFromWin32(GetLastError());
    74 
    7574}
    7675
     
    7877RTR3DECL(void *) RTTlsGet(RTTLS iTls)
    7978{
    80     return TlsGetValue(iTls);
     79    return TlsGetValue((DWORD)iTls);
    8180}
    8281
     
    8483RTR3DECL(int) RTTlsGetEx(RTTLS iTls, void **ppvValue)
    8584{
    86     void *pv = TlsGetValue(iTls);
     85    void *pv = TlsGetValue((DWORD)iTls);
    8786    if (pv)
    8887    {
     
    9998RTR3DECL(int) RTTlsSet(RTTLS iTls, void *pvValue)
    10099{
    101     if (TlsSetValue(iTls, pvValue))
     100    if (TlsSetValue((DWORD)iTls, pvValue))
    102101        return VINF_SUCCESS;
    103102    return RTErrConvertFromWin32(GetLastError());
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