2010-09-28 22:52:53 +02:00
|
|
|
diff --git a/dlls/shell32/pidl.c b/dlls/shell32/pidl.c
|
2011-01-27 12:11:26 +01:00
|
|
|
index 71b8f93..8a3d721 100644
|
2010-09-28 22:52:53 +02:00
|
|
|
--- a/dlls/shell32/pidl.c
|
|
|
|
+++ b/dlls/shell32/pidl.c
|
2011-01-27 12:11:26 +01:00
|
|
|
@@ -1755,13 +1755,13 @@ LPITEMIDLIST _ILCreateEntireNetwork(void)
|
2010-09-28 22:52:53 +02:00
|
|
|
|
|
|
|
TRACE("\n");
|
|
|
|
|
|
|
|
- pidlOut = _ILAlloc(PT_NETWORK, FIELD_OFFSET(PIDLDATA, u.network.szNames[sizeof("Entire Network")]));
|
|
|
|
+ pidlOut = _ILAlloc(PT_NETWORK, FIELD_OFFSET(PIDLDATA, u.network.szNames[strlen("Entire Network")+1]));
|
|
|
|
if (pidlOut)
|
|
|
|
{
|
|
|
|
LPPIDLDATA pData = _ILGetDataPointer(pidlOut);
|
|
|
|
|
|
|
|
pData->u.network.dummy = 0;
|
|
|
|
- strcpy(pData->u.network.szNames, "Entire Network");
|
|
|
|
+ memcpy(pData->u.network.szNames, "Entire Network", strlen("Entire Network")+1);
|
|
|
|
}
|
|
|
|
return pidlOut;
|
|
|
|
}
|