Merge "goldfish-opengl: nuke canFitVirtualHostVisibleMemoryInfo"
diff --git a/system/gralloc/gralloc_30.cpp b/system/gralloc/gralloc_30.cpp
index c012908..298842f 100644
--- a/system/gralloc/gralloc_30.cpp
+++ b/system/gralloc/gralloc_30.cpp
@@ -450,7 +450,7 @@
             RETURN_ERROR(nullptr);
         }
 
-        if ((m->id == GRALLOC_HARDWARE_MODULE_ID) && (m->name == GOLDFISH_GRALLOC_MODULE_NAME)) {
+        if (strcmp(m->id, GRALLOC_HARDWARE_MODULE_ID) == 0 && m->name == GOLDFISH_GRALLOC_MODULE_NAME) {
             return reinterpret_cast<private_module_t*>(const_cast<hw_module_t*>(m));
         } else {
             RETURN_ERROR(nullptr);