77{
87
88 if (package)
90 else
93 {
96 }
97
100
101 ttOffsetTable.uNumOfTables =
SWAPWORD(ttOffsetTable.uNumOfTables);
102 ttOffsetTable.uMajorVersion =
SWAPWORD(ttOffsetTable.uMajorVersion);
103 ttOffsetTable.uMinorVersion =
SWAPWORD(ttOffsetTable.uMinorVersion);
104
105 if ((ttOffsetTable.uMajorVersion != 1 || ttOffsetTable.uMinorVersion != 0) &&
106 (ttOffsetTable.uMajorVersion != 0x4f54 || ttOffsetTable.uMinorVersion != 0x544f))
108
109 for (
i=0;
i< ttOffsetTable.uNumOfTables;
i++)
110 {
112 break;
113 if (
memcmp(tblDir.szTag,
"name",4)==0)
114 {
116 tblDir.uLength =
SWAPLONG(tblDir.uLength);
117 tblDir.uOffset =
SWAPLONG(tblDir.uOffset);
118 break;
119 }
120 }
121
122 if (!bFound)
124
128
129 ttNTHeader.uNRCount =
SWAPWORD(ttNTHeader.uNRCount);
130 ttNTHeader.uStorageOffset =
SWAPWORD(ttNTHeader.uStorageOffset);
131 for(
i=0;
i<ttNTHeader.uNRCount;
i++)
132 {
134 break;
135
136 ttRecord.uNameID =
SWAPWORD(ttRecord.uNameID);
137 ttRecord.uPlatformID =
SWAPWORD(ttRecord.uPlatformID);
138 ttRecord.uEncodingID =
SWAPWORD(ttRecord.uEncodingID);
139 if (ttRecord.uNameID == id && ttRecord.uPlatformID == 3 &&
140 (ttRecord.uEncodingID == 0 || ttRecord.uEncodingID == 1))
141 {
144
145 ttRecord.uStringLength =
SWAPWORD(ttRecord.uStringLength);
146 ttRecord.uStringOffset =
SWAPWORD(ttRecord.uStringOffset);
150 dwRead = 0;
152 if (dwRead %
sizeof(
WCHAR))
153 {
156 }
160 break;
161 }
162 }
163
167}
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define ReadFile(a, b, c, d, e)
#define INVALID_HANDLE_VALUE
#define FILE_ATTRIBUTE_NORMAL
HANDLE msi_create_file(MSIPACKAGE *package, const WCHAR *filename, DWORD access, DWORD sharing, DWORD creation, DWORD flags)
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i