从“unsigned short []”到“const char *”的问题
typedef struct _OBJECT_TYPE_INFORMATION { UNICODE_STRING TypeName;
.....................
} OBJECT_TYPE_INFORMATION, *POBJECT_TYPE_INFORMATION;
POBJECT_TYPE_INFORMATION ObjectTypeInfo;
代码:
..............
memcpy(ObjectTypeInfo->TypeName.Buffer,L"ProObject",strlen(L"ProObject")*2);
编译时提示Protect.c(763) : warning C4133: “函数” : 从“unsigned short [10]”到“const char *”的类型不兼容
我改如何进行类型转换?