Author: cwittich
Date: Sun Sep 21 07:12:37 2008
New Revision: 36369
URL:
http://svn.reactos.org/svn/reactos?rev=36369&view=rev
Log:
fix two nice typo's
(array subscript was above array bounds)
Modified:
trunk/reactos/dll/win32/shell32/shfldr_fonts.c
Modified: trunk/reactos/dll/win32/shell32/shfldr_fonts.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shfldr_f…
==============================================================================
--- trunk/reactos/dll/win32/shell32/shfldr_fonts.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shfldr_fonts.c [iso-8859-1] Sun Sep 21 07:12:37 2008
@@ -912,14 +912,14 @@
if (LoadStringW(shell32_hInstance, IDS_OPEN, szBuffer,
sizeof(szBuffer)/sizeof(WCHAR)))
{
- szBuffer[(sizeof(szBuffer)/sizeof(char))-1] = L'\0';
+ szBuffer[(sizeof(szBuffer)/sizeof(WCHAR))-1] = L'\0';
_InsertMenuItemW(hMenu, indexMenu++, TRUE, idCmdFirst + Count, MFT_STRING,
szBuffer, MFS_DEFAULT);
Count++;
}
if (LoadStringW(shell32_hInstance, IDS_PRINT_VERB, szBuffer,
sizeof(szBuffer)/sizeof(WCHAR)))
{
- szBuffer[(sizeof(szBuffer)/sizeof(char))-1] = L'\0';
+ szBuffer[(sizeof(szBuffer)/sizeof(WCHAR))-1] = L'\0';
_InsertMenuItemW(hMenu, indexMenu++, TRUE, idCmdFirst + Count++, MFT_STRING,
szBuffer, MFS_ENABLED);
}