Author: khornicek
Date: Sun Apr 6 17:33:12 2014
New Revision: 62669
URL:
http://svn.reactos.org/svn/reactos?rev=62669&view=rev
Log:
[DXDIAG]
- fix a buffer overrun
CID #1102308
Modified:
trunk/reactos/base/applications/dxdiag/network.c
Modified: trunk/reactos/base/applications/dxdiag/network.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/dxdiag/n…
==============================================================================
--- trunk/reactos/base/applications/dxdiag/network.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/dxdiag/network.c [iso-8859-1] Sun Apr 6 17:33:12
2014
@@ -282,7 +282,7 @@
{
RegProviders |= (1 << ProviderIndex);
szResult[0] = L'\0';
- LoadStringW(hInst, IDS_REG_SUCCESS, szResult, sizeof(szResult));
+ LoadStringW(hInst, IDS_REG_SUCCESS, szResult, sizeof(szResult) /
sizeof(WCHAR));
Item.iSubItem = 1;
Item.iItem = ProviderIndex + ItemCount;