PKGBUILDs/community/nestopia/nestopia_bogus_error_on_save_settings.patch
2009-10-09 21:15:33 -05:00

11 lines
510 B
Diff

--- source/linux/settings.cpp.old 2008-10-23 05:45:58.000000000 +0200
+++ source/linux/settings.cpp 2008-12-04 23:17:59.000000000 +0100
@@ -16,7 +16,7 @@
using namespace LinuxNst;
#define READ_SETTING(x) fread(&x, sizeof(x), 1, f)
-#define WRITE_SETTING(x) if (fwrite(&x, sizeof(x), 1, f) != sizeof(x)) std::cout << "Error writing setting!\n"
+#define WRITE_SETTING(x) if (fwrite(&x, sizeof(x), 1, f) != 1) std::cout << "Error writing setting!\n"
static int rates[4] = { 11025, 22050, 44100, 48000 };