Commits

Ryan Kistner  committed 4d5397d

that's not how you get utils

  • Participants
  • Parent commits 911b422

Comments (0)

Files changed (1)

File steam_api/steam_api.cpp

 		return false;
 
 	steamclient = (STEAMCLIENT_ICLASS *)clientFactory(STEAMCLIENT_IFACE, NULL);
-	steamutils = (STEAMUTILS_ICLASS *)clientFactory(STEAMUTILS_IFACE, NULL);
 
-	if(steamclient == NULL || steamutils == NULL)
+	if(steamclient == NULL)
 		return false;
 
 	pipe = steamclient->CreateSteamPipe();
 	if(user == NULL)
 		return false;
 
+	steamutils = (STEAMUTILS_ICLASS *)steamclient->GetISteamUtils(pipe, STEAMUTILS_IFACE);
+
+	if(steamutils == NULL)
+		return false;
+
 	return true;
 }