OSDN Git Service

[GENERAL] *Partly* merge upstream 2022-04-05.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pc2001 / pc2001.cpp
index 99aeb67..d49cd79 100644 (file)
@@ -328,8 +328,8 @@ bool VM::process_state(FILEIO* state_fio, bool loading)
                return false;
        }
        for(DEVICE* device = first_device; device; device = device->next_device) {
-               const char *name = typeid(*device).name() + 6; // skip "class "
-               int len = (int)strlen(name);
+               const _TCHAR *name = char_to_tchar(typeid(*device).name() + 6); // skip "class "
+               int len = (int)_tcslen(name);
                
                if(!state_fio->StateCheckInt32(len)) {
                        return false;