windows.cfg: Added support for lstrcatA() and lstrcatW()

This commit is contained in:
orbitcowboy 2021-07-19 09:47:07 +02:00
parent d1fe34e167
commit 97c5aa56da
1 changed files with 42 additions and 3 deletions

View File

@ -4907,15 +4907,54 @@ HFONT CreateFont(
<not-bool/>
</arg>
</function>
<!--LPTSTR WINAPI lstrcat(
_Inout_ LPTSTR lpString1,
_In_ LPTSTR lpString2);-->
<!--LPTSTR WINAPI lstrcat( _Inout_ LPTSTR lpString1, _In_ LPTSTR lpString2);-->
<!-- TODO: When implemented use minsize for argument 1 to verify that the
buffer is at least "(strlen(arg1)+strlen(arg2)+1)*sizeof(TCHAR)" bytes in size.-->
<function name="lstrcat">
<returnValue type="LPTSTR"/>
<noreturn>false</noreturn>
<leak-ignore/>
<not-overlapping-data ptr1-arg="1" ptr2-arg="2" strlen-arg="2"/>
<warn severity="style" alternatives="StringCchCat">Due to security concerns it is not recommended to use this function, see MSDN for details.</warn>
<arg nr="1" direction="inout">
<not-null/>
<not-uninit/>
<strz/>
</arg>
<arg nr="2" direction="in">
<not-null/>
<not-uninit/>
<strz/>
</arg>
</function>
<!--LPSTR lstrcatA(LPSTR lpString1, LPCSTR lpString2);-->
<!-- TODO: When implemented use minsize for argument 1 to verify that the
buffer is at least "(strlen(arg1)+strlen(arg2)+1)*sizeof(TCHAR)" bytes in size.-->
<function name="lstrcatA">
<returnValue type="LPSTR"/>
<noreturn>false</noreturn>
<leak-ignore/>
<not-overlapping-data ptr1-arg="1" ptr2-arg="2" strlen-arg="2"/>
<warn severity="style" alternatives="StringCchCat">Due to security concerns it is not recommended to use this function, see MSDN for details.</warn>
<arg nr="1" direction="inout">
<not-null/>
<not-uninit/>
<strz/>
</arg>
<arg nr="2" direction="in">
<not-null/>
<not-uninit/>
<strz/>
</arg>
</function>
<!--LPWSTR lstrcatW( _Inout_ LPWSTR lpString1, _In_ LPCWSTR lpString2);-->
<!-- TODO: When implemented use minsize for argument 1 to verify that the
buffer is at least "(strlen(arg1)+strlen(arg2)+1)*sizeof(TCHAR)" bytes in size.-->
<function name="lstrcatW">
<returnValue type="LPWSTR"/>
<noreturn>false</noreturn>
<leak-ignore/>
<not-overlapping-data ptr1-arg="1" ptr2-arg="2" strlen-arg="2"/>
<warn severity="style" alternatives="StringCchCat">Due to security concerns it is not recommended to use this function, see MSDN for details.</warn>
<arg nr="1" direction="inout">
<not-null/>