summaryrefslogtreecommitdiff
path: root/plugins/Utils/mir_memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Utils/mir_memory.h')
-rw-r--r--plugins/Utils/mir_memory.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/Utils/mir_memory.h b/plugins/Utils/mir_memory.h
index 678972805c..d62f4833f3 100644
--- a/plugins/Utils/mir_memory.h
+++ b/plugins/Utils/mir_memory.h
@@ -27,18 +27,11 @@ Boston, MA 02111-1307, USA.
static BOOL mir_is_unicode()
{
- static int is_unicode = -1;
- if (is_unicode == -1)
- {
- char ver[1024];
- CallService(MS_SYSTEM_GETVERSIONTEXT, (WPARAM) sizeof(ver), (LPARAM) ver);
- is_unicode = (strstr(ver, "Unicode") != NULL ? 1 : 0);
- }
- return is_unicode;
+ return TRUE;
}
-static void * mir_alloc0(size_t size)
+static void * mir_alloc0(size_t size)
{
void * ptr = mir_alloc(size);