diff options
Diffstat (limited to 'tests/src/Interop/SimpleStruct/SimpleStructNative.cpp')
-rw-r--r-- | tests/src/Interop/SimpleStruct/SimpleStructNative.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/Interop/SimpleStruct/SimpleStructNative.cpp b/tests/src/Interop/SimpleStruct/SimpleStructNative.cpp index 5fe82146b8..fb855a42e8 100644 --- a/tests/src/Interop/SimpleStruct/SimpleStructNative.cpp +++ b/tests/src/Interop/SimpleStruct/SimpleStructNative.cpp @@ -30,7 +30,7 @@ DLL_EXPORT BOOL _cdecl CdeclSimpleStructByRef(Sstr *p) { p->a = 100; p->b=1; - strncpy(p->str,"after",6); + strcpy_s(p->str, 7, "after"); return TRUE; } @@ -81,7 +81,7 @@ DLL_EXPORT ExplStruct* _cdecl CdeclSimpleExplStruct(ExplStruct p,BOOL *result) } extern "C" -DLL_EXPORT voidPtr _cdecl GetFptr(int i) +DLL_EXPORT voidPtr __stdcall GetFptr(int i) { switch(i) { |