]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/sound.cpp
reverted last (accidental) change
[wxWidgets.git] / src / unix / sound.cpp
index 3871409e7ee0c944e9b269d19d5aa38c8879fdad..ce7557247174a2fe5fb96cd1e4dd442a07273bd1 100644 (file)
@@ -9,11 +9,6 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "sound.h"
-#pragma implementation "soundbase.h"
-#endif
-
 // for compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -471,7 +466,7 @@ bool wxSound::Create(const wxString& fileName, bool isResource)
 
     size_t len = wx_truncate_cast(size_t, lenOrig);
     wxUint8 *data = new wxUint8[len];
-    if (fileWave.Read(data, len) != len)
+    if ( fileWave.Read(data, len) != lenOrig )
     {
         wxLogError(_("Couldn't load sound data from '%s'."), fileName.c_str());
         return false;