Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

handle file not found in PlaySound sample

  • Loading branch information...
commit e669548ac087df13e309a9258ef11a73fcfac056 1 parent 3e48992
@urkle urkle authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/PlaySound/main.cpp
View
4 tests/PlaySound/main.cpp
@@ -66,6 +66,10 @@ int main (int argc, char *argv[])
printf("Testing loading from memory buffer ...");
FILE *fp = fopen(strFilename.c_str(), "rb");
+ if (!fp) {
+ printf("Failed file not found\n");
+ return 128;
+ }
fseek(fp, 0, SEEK_END);
size_t pos = ftell(fp);
fseek(fp, 0, SEEK_SET);
Please sign in to comment.
Something went wrong with that request. Please try again.