Index: dll/win32/shlwapi/reg.c =================================================================== --- dll/win32/shlwapi/reg.c (revision 65566) +++ dll/win32/shlwapi/reg.c (working copy) @@ -20,6 +20,7 @@ */ #include "precomp.h" +#include /* Key/Value names for MIME content types */ static const char lpszContentTypeA[] = "Content Type"; @@ -1144,7 +1145,7 @@ FIXME("(hkey=%p,%s,%s,%p,%d) - semi-stub\n",hKey, debugstr_a(lpszSubKey), debugstr_a(lpszValue), lpszPath, dwFlags); - lstrcpyA(szBuff, lpszPath); + StringCchCopyA(szBuff, _countof(szBuff), lpszPath); /* FIXME: PathUnExpandEnvStringsA(szBuff); */ @@ -1165,7 +1166,7 @@ FIXME("(hkey=%p,%s,%s,%p,%d) - semi-stub\n",hKey, debugstr_w(lpszSubKey), debugstr_w(lpszValue), lpszPath, dwFlags); - lstrcpyW(szBuff, lpszPath); + StringCchCopyW(szBuff, _countof(szBuff), lpszPath); /* FIXME: PathUnExpandEnvStringsW(szBuff); */