We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d046df commit 2db34c2Copy full SHA for 2db34c2
1 file changed
lib/src/Utils/File.c
@@ -248,7 +248,7 @@ cl_int cl_util_write_binaries(const cl_program program,
248
249
// write the binary to the output file
250
FILE *f = NULL;
251
- if (fopen_s(&f, filename, "wb") != 0)
+ if (fopen_s(&f, filename, "wb") == 0)
252
{
253
if (fwrite(binaries_ptr[i], sizeof(unsigned char), binaries_size[i],
254
f)
0 commit comments