diff options
author | Karlson2k <k2k@narod.ru> | 2014-06-28 19:48:08 +0400 |
---|---|---|
committer | Karlson2k <k2k@narod.ru> | 2014-10-16 01:25:58 +0400 |
commit | cc35eb244a210bad080d6aa4ec419c7a2a771e98 (patch) | |
tree | 92b4e4b070f511ca645547c8845786cae08e3269 /lib | |
parent | cbe01867c5523ea8fc1ea5c7a6dbf5ce4a48583a (diff) |
Reflect int64_t -> size_t changes for "Read()" to Addons
Diffstat (limited to 'lib')
-rw-r--r-- | lib/addons/library.xbmc.addon/libXBMC_addon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/addons/library.xbmc.addon/libXBMC_addon.cpp b/lib/addons/library.xbmc.addon/libXBMC_addon.cpp index 05ab740ac4..3bc9370873 100644 --- a/lib/addons/library.xbmc.addon/libXBMC_addon.cpp +++ b/lib/addons/library.xbmc.addon/libXBMC_addon.cpp @@ -140,10 +140,10 @@ DLLEXPORT void* XBMC_open_file_for_write(void *hdl, void* cb, const char* strFil return ((CB_AddOnLib*)cb)->OpenFileForWrite(((AddonCB*)hdl)->addonData, strFileName, bOverWrite); } -DLLEXPORT unsigned int XBMC_read_file(void *hdl, void* cb, void* file, void* lpBuf, int64_t uiBufSize) +DLLEXPORT ssize_t XBMC_read_file(void *hdl, void* cb, void* file, void* lpBuf, size_t uiBufSize) { if (cb == NULL) - return 0; + return -1; return ((CB_AddOnLib*)cb)->ReadFile(((AddonCB*)hdl)->addonData, file, lpBuf, uiBufSize); } |