[ros-diffs] [janderwald] 34957: - fix a bug which made the label display 2x times the drive letter

janderwald at svn.reactos.org janderwald at svn.reactos.org
Wed Jul 30 15:09:50 CEST 2008


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_mycomp.c?rev=34957&r1=34956&r2=34957&view=diff
==============================================================================
--- 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);



More information about the Ros-diffs mailing list