Every time I try to do this will concludes with a crash:
test.exe has stopped working
A problem caused the program to stop working correctly.
Windows will close the program and notify you if a solution is
available.
as shown in the popped up message window
My code is really simple. It's going to add a '*' onto the end of a existing string. The string can be char* or wchar_t*. I'm using a very safe way to do it.
Here is my code (forget about the comments):