Author: cwittich
Date: Sun Jul 29 22:02:31 2007
New Revision: 28014
URL:
http://svn.reactos.org/svn/reactos?rev=28014&view=rev
Log:
fix GetLogicalDriveStringsA/W
Modified:
trunk/reactos/dll/win32/kernel32/file/volume.c
Modified: trunk/reactos/dll/win32/kernel32/file/volume.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/vo…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/volume.c (original)
+++ trunk/reactos/dll/win32/kernel32/file/volume.c Sun Jul 29 22:02:31 2007
@@ -99,7 +99,7 @@
}
- if (count * 4 * sizeof(char) <= nBufferLength)
+ if (count * 4 <= nBufferLength)
{
LPSTR p = lpBuffer;
@@ -113,7 +113,7 @@
}
*p = '\0';
}
- return (count * 4 * sizeof(char));
+ return (count * 4);
}
@@ -136,7 +136,7 @@
count++;
}
- if (count * 4 * sizeof(WCHAR) <= nBufferLength)
+ if (count * 4 <= nBufferLength)
{
LPWSTR p = lpBuffer;
for (drive = 0; drive < MAX_DOS_DRIVES; drive++)
@@ -149,7 +149,7 @@
}
*p = (WCHAR)'\0';
}
- return (count * 4 * sizeof(WCHAR));
+ return (count * 4);
}