| Previous | 15994 Revisions | Next |
| r14513 Saturday 18th February, 2012 at 16:16:13 UTC by Miodrag Milanović |
|---|
| Fixed cdrom_file allocation, it contains classes so can't be allocated by malloc this fix crash opeining CUE file directly from MESS (no whatsnew) |
| [src/lib/util] | cdrom.c |
| r14512 | r14513 | |
|---|---|---|
| 119 | 119 | UINT32 physofs; |
| 120 | 120 | |
| 121 | 121 | /* allocate memory for the CD-ROM file */ |
| 122 | file = | |
| 122 | file = n | |
| 123 | 123 | if (file == NULL) |
| 124 | 124 | return NULL; |
| 125 | 125 | |
| r14512 | r14513 | |
| 208 | 208 | err = cdrom_parse_metadata(chd, &file->cdtoc); |
| 209 | 209 | if (err != CHDERR_NONE) |
| 210 | 210 | { |
| 211 | | |
| 211 | d | |
| 212 | 212 | return NULL; |
| 213 | 213 | } |
| 214 | 214 | |
| r14512 | r14513 | |
| 263 | 263 | } |
| 264 | 264 | } |
| 265 | 265 | |
| 266 | | |
| 266 | d | |
| 267 | 267 | } |
| 268 | 268 | |
| 269 | 269 |
| Previous | 15994 Revisions | Next |