(360) Another buildfix

This commit is contained in:
twinaphex 2017-01-19 20:53:27 +01:00
parent 98f0422b20
commit 057af3c310
1 changed files with 2 additions and 1 deletions

View File

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