VirtualBox

Changeset 63091 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 6, 2016 3:09:17 PM (8 years ago)
Author:
vboxsync
Message:

GA/NT/Installer: warnings

Location:
trunk/src/VBox/Additions/WINNT/Installer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/Loader/VBoxWindowsAdditions.cpp

    r62679 r63091  
    2222*   Header Files                                                                                                                 *
    2323*********************************************************************************************************************************/
     24#include <iprt/cdefs.h>
    2425#include <iprt/win/windows.h>
    2526#ifndef ERROR_ELEVATION_REQUIRED    /* Windows Vista and later. */
     
    3334static BOOL IsWow64(void)
    3435{
    35     BOOL bIsWow64 = FALSE;
     36    BOOL fIsWow64 = FALSE;
    3637    typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS)(HANDLE, PBOOL);
    3738    LPFN_ISWOW64PROCESS fnIsWow64Process = (LPFN_ISWOW64PROCESS)GetProcAddress(GetModuleHandle(L"kernel32"), "IsWow64Process");
    3839    if (fnIsWow64Process != NULL)
    3940    {
    40         if (!fnIsWow64Process(GetCurrentProcess(), &bIsWow64))
     41        if (!fnIsWow64Process(GetCurrentProcess(), &fIsWow64))
    4142        {
    4243            fwprintf(stderr, L"ERROR: Could not determine process type!\n");
    4344
    4445            /* Error in retrieving process type - assume that we're running on 32bit. */
    45             bIsWow64 = FALSE;
    46         }
    47     }
    48     return bIsWow64;
     46            fIsWow64 = FALSE;
     47        }
     48    }
     49    return fIsWow64;
    4950}
    5051
     
    114115int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
    115116{
     117    RT_NOREF(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
     118
    116119    /*
    117120     * Gather the parameters of the real installer program.
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxDrvInst.cpp

    r63090 r63091  
    12631263                if (pbVal == NULL) /* By default interpret value as string */
    12641264                {
    1265                     pbVal = (BYTE*)argv[7];
    1266                     dwValSize = _tcslen(argv[7]);
     1265                    pbVal = (BYTE *)argv[7];
     1266                    dwValSize = (DWORD)_tcslen(argv[7]);
    12671267                }
    12681268                if (argc > 9)
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