diff options
author | BFG <Tom.Fredrik@blenning.no> | 2013-11-26 18:58:52 +0100 |
---|---|---|
committer | BFG <Tom.Fredrik@blenning.no> | 2014-08-17 20:13:39 +0200 |
commit | ee1954084f369bb5079e1bcc5ee20e977bf4b9af (patch) | |
tree | 0e0cf46cc2750e6ca866b090a37d9d1a8af10953 | |
parent | 846f245236dc631210b70bd33e1ecc4e4f216338 (diff) |
Don't break strict aliasing rules.
-rw-r--r-- | xbmc/filesystem/iso9660.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/filesystem/iso9660.cpp b/xbmc/filesystem/iso9660.cpp index 91c8608396..c19109f964 100644 --- a/xbmc/filesystem/iso9660.cpp +++ b/xbmc/filesystem/iso9660.cpp @@ -493,7 +493,8 @@ void iso9660::Scan() WORD wSectorSize = from_723(m_info.iso.logical_block_size); // first check if first file in the current VD has a rock-ridge NM. if it has, disable joliet - ::SetFilePointer( m_info.ISO_HANDLE, wSectorSize * from_733(((iso9660_Directory*)(&m_info.iso.szRootDir))->extent), 0, FILE_BEGIN ); + iso9660_Directory *dirPointer = reinterpret_cast<iso9660_Directory*>(&m_info.iso.szRootDir); + ::SetFilePointer( m_info.ISO_HANDLE, wSectorSize * from_733(dirPointer->extent), 0, FILE_BEGIN ); DWORD lpNumberOfBytesRead; char* pCurr_dir_cache = (char*)malloc( 16*wSectorSize ); |