From b3ca3dbbd008c8790847628a66f4318308b66851 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Wed, 30 Jul 2008 13:09:49 +0000 Subject: [PATCH] - fix a bug which made the label display 2x times the drive letter svn path=/trunk/; revision=34957 --- reactos/dll/win32/shell32/shfldr_mycomp.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/reactos/dll/win32/shell32/shfldr_mycomp.c b/reactos/dll/win32/shell32/shfldr_mycomp.c index 9acab06fc31..b54e7d2e9ee 100644 --- a/reactos/dll/win32/shell32/shfldr_mycomp.c +++ b/reactos/dll/win32/shell32/shfldr_mycomp.c @@ -695,6 +695,7 @@ static HRESULT WINAPI ISF_MyComputer_fnGetDisplayNameOf (IShellFolder2 *iface, static const WCHAR wszCloseBracket[] = {')',0}; lstrcpynW(wszDrive, pszPath, 4); + pszPath[0] = L'\0'; GetVolumeInformationW (wszDrive, pszPath, MAX_PATH - 7, &dwVolumeSerialNumber, @@ -723,12 +724,6 @@ static HRESULT WINAPI ISF_MyComputer_fnGetDisplayNameOf (IShellFolder2 *iface, 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);