RtlStringCchCopyW
NTSTATUS __stdcall RtlStringCchCopyW(WCHAR *pszDest, UINT64 cchDest, WCHAR *pszSrc){
NTSTATUS v3;
UINT64 v4;
signed __int64 v5;
WCHAR v6;
WCHAR *v7;
v3 = 0;
if( cchDest - 1 > 0x7FFFFFFE )
v3 = -1073741811;
if( v3 < 0 )
{
if( cchDest )
*pszDest = 0;
}
else
{
if( cchDest )
{
v4 = 2147483646 - cchDest;
v5 = (char *)pszSrc - (char *)pszDest;
do
{
if( !(v4 + cchDest) )
break;
v6 = *(WCHAR *)((char *)pszDest + v5);
if( !v6 )
break;
*pszDest++ = v6;
--cchDest;
}
while( cchDest );
}
v7 = pszDest - 1;
if( cchDest )
v7 = pszDest;
v3 = cchDest == 0 ? 0x80000005 : 0;
*v7 = 0;
}
return v3;
}Referenced by:
AslEnvGetSysNativeDirPathForGuestBuf
AslEnvGetSystem32DirPathBuf
AslPathCombine
AslPathSplit
AslPathWildcardFindFirst
AslStringDuplicate
AslpEnvResolveVars
AslpFileQueryVersionString
CmDeviceClassesSubkeyCallback
CmDevicePanelEnumSubkeyCallback
CmEnumSubkeyCallback
CmGetDeviceContainerIdFromBase
DbgkWerCaptureLiveKernelDump
DrvDbGetObjectSubKeyCallback
IopStoreSystemPartitionInformation
PipMakeGloballyUniqueId
PnpNotifyUserModeDeviceRemoval
PopFxInitializeSocSubsystemStaticInfo
PopLogNotifyDevice
PpmRegisterProfiles
SdbQueryDataExTagID
SdbpCreateSearchDBContext
SdbpGetPathAppPatchPreRS3
TtmNotifyDeviceArrival
TtmpPublishDeviceEvent
WmipMangleInstanceName