Author: tkreuzer
Date: Sat Jan 15 12:58:05 2011
New Revision: 50389
URL:
http://svn.reactos.org/svn/reactos?rev=50389&view=rev
Log:
[PING]
Fix MyLoadString. Patch by menone7 at gmail dot com.
Modified:
trunk/reactos/base/applications/network/ping/ping.c
Modified: trunk/reactos/base/applications/network/ping/ping.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ping/ping.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ping/ping.c [iso-8859-1] Sat Jan 15 12:58:05
2011
@@ -114,7 +114,8 @@
{
HRSRC hres;
HGLOBAL hResData;
- LPWSTR pwsz;
+ WCHAR *pwsz;
+ UINT string_num, i;
hres = FindResourceW(NULL, MAKEINTRESOURCEW((LOWORD(uID) >> 4) + 1),
RT_STRING);
if (!hres) return NULL;
@@ -124,6 +125,11 @@
pwsz = LockResource(hResData);
if (!pwsz) return NULL;
+
+ string_num = uID & 15;
+ for (i = 0; i < string_num; i++)
+ pwsz += *pwsz + 1;
+
return pwsz + 1;
}