Fix major overstep with last commit
[vg.git] / src / vg / vg_steam_auth.h
index 9d06c9c852c1bdac329cc16d97b469dc90cbc709..1875999ce27430b581830625e33dcf88bac17e6b 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef VG_STEAM_AUTH_H
 #define VG_STEAM_AUTH_H
 
+#include "vg/vg_platform.h"
+
 typedef u32 HAuthTicket;
 enum{ k_HAuthTicketInvalid = 0 };
 
@@ -120,7 +122,7 @@ static int vg_load_steam_symetric_key( const char *path, u8 *buf )
       if( len < k_nSteamEncryptedAppTicketSymmetricKeyLen )
       {
          vg_error( "Application key was invalid size\n" );
-         free( text_src );
+         vg_free( text_src );
          return 0;
       }
       
@@ -130,7 +132,7 @@ static int vg_load_steam_symetric_key( const char *path, u8 *buf )
                    vg_char_base16( text_src[i*2+1] );
       }
 
-      free( text_src );
+      vg_free( text_src );
       return 1;
    }
    else