Bring up to date with VS 10 express.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@19945 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2012-12-12 21:21:23 +00:00
parent a0af473a8b
commit 200b2734d7
15 changed files with 96 additions and 77 deletions

View File

@@ -284,13 +284,14 @@ void usage()
# define MAX_SOURCE_STRINGS 5
char** ReadFileData(char *fileName)
{
FILE *in = fopen(fileName, "r");
FILE *in;
int errorCode = fopen_s(&in, fileName, "r");
char *fdata;
int count = 0;
char**return_data=(char**)malloc(MAX_SOURCE_STRINGS+1);
//return_data[MAX_SOURCE_STRINGS]=NULL;
if (!in) {
if (errorCode) {
printf("Error: unable to open input file: %s\n", fileName);
return 0;
}