From 8559d8fc224dc4d6b6451ee47e1f87ff4433a1dc Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 8 Jan 2015 15:59:28 +0100 Subject: [PATCH] Replace MAX_PATH with PATH_MAX_LENGTH --- frontend/platform/platform_xdk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/platform/platform_xdk.c b/frontend/platform/platform_xdk.c index d0363ea853..1b39341a13 100644 --- a/frontend/platform/platform_xdk.c +++ b/frontend/platform/platform_xdk.c @@ -51,8 +51,8 @@ HRESULT ObCreateSymbolicLink(PSTRING SymbolicLinkName, PSTRING DeviceName); HRESULT xbox_io_mount(const char* szDrive, char* szDevice) { STRING DeviceName, LinkName; - CHAR szDestinationDrive[MAX_PATH]; - sprintf_s(szDestinationDrive, MAX_PATH, "\\??\\%s", szDrive); + CHAR szDestinationDrive[PATH_MAX_LENGTH]; + sprintf_s(szDestinationDrive, PATH_MAX_LENGTH, "\\??\\%s", szDrive); RtlInitAnsiString(&DeviceName, szDevice); RtlInitAnsiString(&LinkName, szDestinationDrive); ObDeleteSymbolicLink(&LinkName);