Skip to content

Instantly share code, notes, and snippets.

@libnumafly
Created February 26, 2024 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save libnumafly/f9a2077d7a126e44d0fb8a50e3aa6bb2 to your computer and use it in GitHub Desktop.
Save libnumafly/f9a2077d7a126e44d0fb8a50e3aa6bb2 to your computer and use it in GitHub Desktop.
diff --git a/src/Cedar/Server.c b/src/Cedar/Server.c
index 1aad0d9..af631eb 100644
--- a/src/Cedar/Server.c
+++ b/src/Cedar/Server.c
@@ -10749,23 +10749,7 @@ void SiGetCurrentRegion(CEDAR *c, char *region, UINT region_size)
//
bool SiIsEnterpriseFunctionsRestrictedOnOpenSource(CEDAR *c)
{
- char region[128];
- bool ret = false;
- // Validate arguments
- if (c == NULL)
- {
return false;
- }
-
-
- SiGetCurrentRegion(c, region, sizeof(region));
-
- if (StrCmpi(region, "JP") == 0 || StrCmpi(region, "CN") == 0)
- {
- ret = true;
- }
-
- return ret;
}
// Update the current region
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment