VirtualBox

Changeset 106147 in vbox for trunk


Ignore:
Timestamp:
Sep 25, 2024 8:50:51 AM (2 months ago)
Author:
vboxsync
Message:

Additions/VBoxGuestInstallHelper: Compilation fixes when building for 64-bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp

    r106061 r106147  
    393393                VBOXTRAY_IPC_HDR_VERSION,
    394394                VBOXTRAYIPCMSGTYPE_SHOW_BALLOON_MSG,
    395                 cbPayload
     395                (uint32_t)cbPayload
    396396            };
    397397
     
    399399             * Convert the parametes and put them into the payload structure.
    400400             */
    401             pPayload->cchMsg   = cchMsg;
    402             pPayload->cchTitle = cchTitle;
     401            pPayload->cchMsg   = (uint32_t)cchMsg;
     402            pPayload->cchTitle = (uint32_t)cchTitle;
    403403            char *psz = &pPayload->szzStrings[0];
    404404            int rc = RTUtf16ToUtf8Ex(pMsgEntry->text, RTSTR_MAX, &psz, cchMsg + 1, NULL);
     
    549549                                if (RT_SUCCESS(rc))
    550550                                {
    551                                     WriteFile(hFile, pszUtf8, strlen(pszUtf8), &dwIgn, NULL);
     551                                    WriteFile(hFile, pszUtf8, (DWORD)strlen(pszUtf8), &dwIgn, NULL);
    552552                                    if (fNeedsNewline)
    553553                                        WriteFile(hFile, RT_STR_TUPLE("\r\n"), &dwIgn, NULL);
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