Ver código fonte

fix for to/fro seeks

richarddobson 1 mês atrás
pai
commit
5fbc043e64
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      dev/pvxio2/pvfileio.c

+ 1 - 1
dev/pvxio2/pvfileio.c

@@ -1446,7 +1446,7 @@ int32_t pvoc_framepos(int32_t ifd)
 int32_t pvoc_seek_mcframe(int32_t ifd, int32_t offset, int32_t mode)
 int32_t pvoc_seek_mcframe(int32_t ifd, int32_t offset, int32_t mode)
 {
 {
  //   DWORD mcframealign;
  //   DWORD mcframealign;
-    DWORD rawoffset;
+    int32_t rawoffset;  /* RWD need to be signed to work for to and fro seeks*/
     int32_t rc = -1;
     int32_t rc = -1;
     int32_t mcframealign;
     int32_t mcframealign;
     int32_t pvxcur = 0;
     int32_t pvxcur = 0;