(360) Another buildfix

This commit is contained in:
twinaphex 2017-01-19 20:53:27 +01:00
parent 98f0422b20
commit 057af3c310

View File

@ -1028,7 +1028,8 @@ static HRESULT xbox_io_mount(const char* szDrive, char* szDevice)
STRING DeviceName, LinkName;
char szDestinationDrive[PATH_MAX_LENGTH];
snprintf(szDestinationDrive, sizeof(szDestinationDrive), PATH_MAX_LENGTH, "\\??\\%s", szDrive);
snprintf(szDestinationDrive, sizeof(szDestinationDrive),
"\\??\\%s", szDrive);
RtlInitAnsiString(&DeviceName, szDevice);
RtlInitAnsiString(&LinkName, (CHAR)szDestinationDrive);
ObDeleteSymbolicLink(&LinkName);