Author: janderwald Date: Wed Jul 30 08:09:49 2008 New Revision: 34957
URL: http://svn.reactos.org/svn/reactos?rev=34957&view=rev Log: - fix a bug which made the label display 2x times the drive letter
Modified: trunk/reactos/dll/win32/shell32/shfldr_mycomp.c
Modified: trunk/reactos/dll/win32/shell32/shfldr_mycomp.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shfldr_my... ============================================================================== --- trunk/reactos/dll/win32/shell32/shfldr_mycomp.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/shfldr_mycomp.c [iso-8859-1] Wed Jul 30 08:09:49 2008 @@ -695,6 +695,7 @@ static const WCHAR wszCloseBracket[] = {')',0};
lstrcpynW(wszDrive, pszPath, 4); + pszPath[0] = L'\0'; GetVolumeInformationW (wszDrive, pszPath, MAX_PATH - 7, &dwVolumeSerialNumber, @@ -723,12 +724,6 @@ dwFileSystemFlags = LoadStringW(shell32_hInstance, ResourceId, pszPath, MAX_PATH); if (dwFileSystemFlags > MAX_PATH - 7) pszPath[MAX_PATH-7] = L'\0'; - else if (dwFileSystemFlags == 0) - pszPath[0] = L'\0'; - } - else - { - pszPath[0] = L'\0'; } } strcatW (pszPath, wszOpenBracket);