Skip to content

Commit

Permalink
hijack more!
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Jul 24, 2024
1 parent 86be542 commit d560183
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions modules/rostests/apitests/shell32/LocaleTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,24 @@ std::set<LANGID> langs;
std::map<E_MODULE, HMODULE> mod;
std::map<E_STRING, PART_TEST> parts;

static void InitParts(void)
struct PART_PAIR
{
E_STRING eString;
PART_TEST part_test;
#define DEFINE_PART(eString, eModule, id, nParts) do { \
part_test = { eModule, id, nParts }; \
parts.insert(std::make_pair(eString, part_test)); \
} while (0);
};

static void InitParts(void)
{
static const PART_PAIR s_pairs[] =
{
#define DEFINE_PART(eString, eModule, id, nParts) { eString, { eModule, id, nParts } },
#include "parts.h"
#undef DEFINE_PART
};
for (auto& pair : s_pairs)
{
parts.insert(std::make_pair(pair.eString, pair.part_test));
}
}

static PART_MATCH PartMatches[] =
Expand Down

0 comments on commit d560183

Please sign in to comment.