关于字符串处理的错误
下边的代码有错误吗?
UNICODE_STRING foo;
if(bArriving)
{
RtlInitUnicodeString(&foo,L"Hello world!");
}
else
{
ANSI_STRING bar;
RtlInitAnsiString(&bar,"Goodbye")
RtlAnsiStringToUnicodeString(&foo,&bar,TRUE);
}
....
RtlFreeUnicodeString(&foo);
是不是可以说对于ANSI_STRING来说,改程序没有提供释放的代码呀