rpcrt4/tests: Avoid invalid free of static string.
This commit is contained in:
parent
c5c2db52a3
commit
3356ba6810
1 changed files with 3 additions and 1 deletions
|
@ -867,7 +867,9 @@ s123_t * __cdecl s_get_s123(void)
|
||||||
|
|
||||||
str_t __cdecl s_get_filename(void)
|
str_t __cdecl s_get_filename(void)
|
||||||
{
|
{
|
||||||
return (char *)__FILE__;
|
void *ptr = MIDL_user_allocate(strlen(__FILE__) + 1);
|
||||||
|
strcpy(ptr, __FILE__);
|
||||||
|
return (char *)ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __cdecl s_echo_ranged_int(int i, int j, int k)
|
int __cdecl s_echo_ranged_int(int i, int j, int k)
|
||||||
|
|
Loading…
Add table
Reference in a new issue