1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * IPRT - RTPathGetCurrentOnDrive, generic implementation.
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * Copyright (C) 2014 Oracle Corporation
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * available from http://www.virtualbox.org. This file is free software;
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * you can redistribute it and/or modify it under the terms of the GNU
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * General Public License (GPL) as published by the Free Software
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * The contents of this file may alternatively be used under the terms
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * of the Common Development and Distribution License Version 1.0
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * VirtualBox OSE distribution, in which case the provisions of the
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * CDDL are applicable instead of those of the GPL.
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * You may elect to license modified versions of this file under the
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * terms and conditions of either the GPL or the CDDL or both.
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync/*******************************************************************************
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync* Header Files *
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync*******************************************************************************/
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsyncRTDECL(int) RTPathGetCurrentOnDrive(char chDrive, char *pszPath, size_t cbPath)
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * Check if it's the same drive as the current directory.
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync || RT_C_TO_LOWER(chDrive) == RT_C_TO_LOWER(*pszPath))
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * Different drive, indicate root.
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync * No driver letters, just return root slash on whatever we're asked.