Commit 3356ba68 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

rpcrt4/tests: Avoid invalid free of static string.

parent c5c2db52
...@@ -867,7 +867,9 @@ s123_t * __cdecl s_get_s123(void) ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment