# | Line 159 | Line 159 | void get_finfo(const char *path, uint32 | |
---|---|---|
159 | if (actual > 0) { | |
160 | ||
161 | // Translate MIME type to MacOS type/creator | |
162 | < | char mactype[4]; |
162 | > | uint8 mactype[4]; |
163 | if (sscanf(mime, "application/x-MacOS-%c%c%c%c", mactype, mactype+1, mactype+2, mactype+3) == 4) { | |
164 | ||
165 | // MacOS style type | |
166 | < | WriteMacInt32(finfo + fdType, mactype); |
166 | > | WriteMacInt32(finfo + fdType, (mactype[0] << 24) | (mactype[1] << 16) | (mactype[2] << 8) | mactype[3]); |
167 | ||
168 | } else { | |
169 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |