Bugs fixed

This commit is contained in:
Nekotekina 2014-08-31 23:38:03 +04:00
parent 06486b6537
commit 49b295e332
2 changed files with 2 additions and 2 deletions

View File

@ -358,7 +358,7 @@ public:
template<typename T> void WriteString(const T addr, const std::string& str)
{
memcpy(GetMemFromAddr<T>(addr), str.c_str(), str.size());
strcpy((char*)GetMemFromAddr<T>(addr), str.c_str());
}
u32 GetUserMemTotalSize()

View File

@ -38,7 +38,7 @@ namespace detail
static __forceinline T func(PPUThread& CPU)
{
return (T&)CPU.FPR[f_count];
return (T)CPU.FPR[f_count];
}
};