[Win32] fix argument type.

- argument of interface is a long type.
This commit is contained in:
Lee, Jae-Hong 2013-11-09 23:44:15 +09:00
parent 9f16bfadd1
commit 5e36021d54
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ bool FileUtilsWin32::isAbsolutePath(const std::string& strPath) const
return false; return false;
} }
unsigned char* FileUtilsWin32::getFileData(const char* filename, const char* mode, unsigned long* size) unsigned char* FileUtilsWin32::getFileData(const char* filename, const char* mode, long* size)
{ {
unsigned char * pBuffer = NULL; unsigned char * pBuffer = NULL;
CCASSERT(filename != NULL && size != NULL && mode != NULL, "Invalid parameters."); CCASSERT(filename != NULL && size != NULL && mode != NULL, "Invalid parameters.");

View File

@ -58,7 +58,7 @@ protected:
* @return Upon success, a pointer to the data is returned, otherwise NULL. * @return Upon success, a pointer to the data is returned, otherwise NULL.
* @warning Recall: you are responsible for calling delete[] on any Non-NULL pointer returned. * @warning Recall: you are responsible for calling delete[] on any Non-NULL pointer returned.
*/ */
virtual unsigned char* getFileData(const char* filename, const char* mode, unsigned long * size) override; virtual unsigned char* getFileData(const char* filename, const char* mode, long * size) override;
/** /**
* Gets full path for filename, resolution directory and search path. * Gets full path for filename, resolution directory and search path.