summaryrefslogtreecommitdiff
path: root/sal/systools/win32/uwinapi/GetLogicalDriveStringsW.cpp
blob: 5773825440d5e42dce4958581ab794e2e02d03f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "macros.h"

IMPLEMENT_THUNK( kernel32, WINDOWS, DWORD, WINAPI, GetLogicalDriveStringsW, ( DWORD cchBuffer, LPWSTR lpBufferW ) )
{
    AUTO_STR( lpBuffer, cchBuffer );

    DWORD	dwResult = GetLogicalDriveStringsA( cchBuffer, lpBufferA );


    if ( dwResult && dwResult < cchBuffer )
        STRBUF2WSTR( lpBuffer, dwResult + 1, cchBuffer );

    return dwResult;
}