diff --git a/src/rcore.c b/src/rcore.c
index 99aca0059..d3c430ef0 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -681,7 +681,10 @@ void InitWindow(int width, int height, const char *title)
 
     // Initialize platform
     //--------------------------------------------------------------
-    InitPlatform();
+    if(InitPlatform() != 0) {
+        TRACELOG(LOG_ERROR, "SYSTEM: Failed to initialize Platform");
+        return;
+    }
     //--------------------------------------------------------------
 
     // Initialize rlgl default data (buffers and shaders)