# HG changeset patch # User reimar # Date 1265219418 0 # Node ID c6ccbae868cf36d3e6418df10ad59640600229b6 # Parent 60fb098fe8cf20775e39d422ffaa2b11525c9cc1 Fix argument order for lseek, fixes cookie loading in Windows and in general everywhere where SEEK_SET != 0. diff -r 60fb098fe8cf -r c6ccbae868cf stream/cookies.c --- a/stream/cookies.c Wed Feb 03 13:14:09 2010 +0000 +++ b/stream/cookies.c Wed Feb 03 17:50:18 2010 +0000 @@ -133,7 +133,7 @@ return NULL; } - lseek(fd, SEEK_SET, 0); + lseek(fd, 0, SEEK_SET); if (!(buffer = malloc(*length + 1))) { mp_msg(MSGT_NETWORK, MSGL_V, "Could not malloc.");