Fixed assertion in glk_stream_set_position()
authorfliep <fliep@ddfedd41-794f-dd11-ae45-00112f111e67>
Sun, 24 May 2009 08:32:12 +0000 (08:32 +0000)
committerfliep <fliep@ddfedd41-794f-dd11-ae45-00112f111e67>
Sun, 24 May 2009 08:32:12 +0000 (08:32 +0000)
libchimara/strio.c

index 921b75cc771f0331828220061dbfc9030726fcd1..a33f13f7f53413e41037e3d41dcf90e0c1d79a36 100644 (file)
@@ -1136,7 +1136,7 @@ glk_stream_set_position(strid_t str, glsi32 pos, glui32 seekmode)
 {
        VALID_STREAM(str, return);
        g_return_if_fail(!(seekmode == seekmode_Start && pos < 0));
-       g_return_if_fail(!(seekmode == seekmode_End || pos > 0));
+       g_return_if_fail(!(seekmode == seekmode_End && pos > 0));
        
        switch(str->type)
        {