ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/BeOS/extfs_beos.cpp
(Generate patch)

Comparing BasiliskII/src/BeOS/extfs_beos.cpp (file contents):
Revision 1.12 by cebix, 2001-02-02T20:52:57Z vs.
Revision 1.13 by cebix, 2001-02-09T20:04:15Z

# 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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines