Skip to content

Commit

Permalink
[CKPE]
Browse files Browse the repository at this point in the history
rc2json: fixed id for resource hacker
  • Loading branch information
Perchik71 committed Nov 26, 2024
1 parent 64e9972 commit b102a61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rc2json/rc2json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static bool rc2json(const char* a_filename)
char type[100];
char classname[100];
char title[100];
uint32_t id;
uint16_t id;
uint32_t left, top, width, height;
};

Expand Down Expand Up @@ -327,10 +327,10 @@ static bool rc2json(const char* a_filename)

read_words(in_stream, szWord);

controlinfo.id = strtoul(szWord, nullptr, 10);
controlinfo.id = (uint16_t)strtoul(szWord, nullptr, 10);
}
else
controlinfo.id = strtoul(szWord, nullptr, 10);
controlinfo.id = (uint16_t)strtoul(szWord, nullptr, 10);

read_words(in_stream, szWord);
strcpy_s(controlinfo.classname, trim(szWord).c_str());
Expand Down Expand Up @@ -424,10 +424,10 @@ static bool rc2json(const char* a_filename)
strcpy_s(controlinfo.title, trim(szWord).c_str());

read_words(in_stream, szWord);
controlinfo.id = strtoul(szWord, nullptr, 10);
controlinfo.id = (uint16_t)strtoul(szWord, nullptr, 10);
}
else
controlinfo.id = strtoul(szWord, nullptr, 10);
controlinfo.id = (uint16_t)strtoul(szWord, nullptr, 10);

read_words(in_stream, szWord);
controlinfo.left = strtoul(szWord, nullptr, 10);
Expand Down
Binary file modified rc2json/version/build_version.txt
Binary file not shown.
Binary file modified rc2json/version/resource_version2.h
Binary file not shown.

0 comments on commit b102a61

Please sign in to comment.