(XDK360) Fix

This commit is contained in:
twinaphex 2017-01-19 21:09:44 +01:00
parent 861ad8b3ab
commit 9e063318da

View File

@ -1031,7 +1031,7 @@ static HRESULT xbox_io_mount(const char* szDrive, char* szDevice)
snprintf(szDestinationDrive, sizeof(szDestinationDrive), snprintf(szDestinationDrive, sizeof(szDestinationDrive),
"\\??\\%s", szDrive); "\\??\\%s", szDrive);
RtlInitAnsiString(&DeviceName, szDevice); RtlInitAnsiString(&DeviceName, szDevice);
RtlInitAnsiString(&LinkName, (CHAR)szDestinationDrive); RtlInitAnsiString(&LinkName, (PCHAR)szDestinationDrive);
ObDeleteSymbolicLink(&LinkName); ObDeleteSymbolicLink(&LinkName);
return (HRESULT)ObCreateSymbolicLink(&LinkName, &DeviceName); return (HRESULT)ObCreateSymbolicLink(&LinkName, &DeviceName);
} }