VirtualBox

Ignore:
Timestamp:
May 17, 2023 1:48:57 PM (22 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157464
Message:

*: A bunch of adjustments that allows using /permissive- with Visual C++ (qt 6.x necessity).

Location:
trunk/src/VBox/Additions/WINNT/SharedFolders/driver
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/SharedFolders/driver/path.cpp

    r98103 r99828  
    3737*   Defined Constants And Macros                                                                                                 *
    3838*********************************************************************************************************************************/
    39 static UNICODE_STRING g_UnicodeBackslash = { 2, 4, L"\\" };
     39static UNICODE_STRING g_UnicodeBackslash = { 2, 4, (PWSTR)L"\\" };
    4040
    4141
  • trunk/src/VBox/Additions/WINNT/SharedFolders/driver/vbsf.cpp

    r98103 r99828  
    11241124    NTSTATUS Status = STATUS_BAD_NETWORK_NAME;
    11251125
    1126     ULONG i;
    1127     PWCHAR pwc;
    1128     PWCHAR pwc1;
    1129 
    1130     static PWCHAR spwszPrefix = L"\\Device\\VBoxMiniRdr\\;";
     1126    static WCHAR const s_wszPrefix[] = L"\\Device\\VBoxMiniRdr\\;";
    11311127
    11321128    /* Unicode chars in the string. */
     
    11351131
    11361132    /* Check that the name starts with correct prefix. */
    1137     pwc1 = &spwszPrefix[0];
    1138     pwc = ConnectionName->Buffer;
     1133    PCWCHAR pwc1 = &s_wszPrefix[0];
     1134    PCWCHAR pwc  = ConnectionName->Buffer;
     1135    ULONG   i;
    11391136    for (i = 0; i < cConnectionName; i++, pwc1++, pwc++)
    11401137    {
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