Skip to content

Commit 6a56047

Browse files
committed
fix ResToText
1 parent f9fbae7 commit 6a56047

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/ResToText.hpp

+21-21
Original file line numberDiff line numberDiff line change
@@ -231,47 +231,47 @@ ResToText::DumpEntry(const ResEntry& entry)
231231
{
232232
switch (entry.type.m_id)
233233
{
234-
case (WORD)(INT_PTR)RT_CURSOR:
234+
case 1: // RT_CURSOR
235235
return DoCursor(entry);
236-
case (WORD)(INT_PTR)RT_BITMAP:
236+
case 2: // RT_BITMAP
237237
return DoBitmap(entry);
238-
case (WORD)(INT_PTR)RT_ICON:
238+
case 3: // RT_ICON
239239
return DoIcon(entry);
240-
case (WORD)(INT_PTR)RT_MENU:
240+
case 4: // RT_MENU
241241
return DoMenu(entry);
242-
case (WORD)(INT_PTR)RT_DIALOG:
242+
case 5: // RT_DIALOG
243243
return DoDialog(entry);
244-
case (WORD)(INT_PTR)RT_STRING:
244+
case 6: // RT_STRING
245245
return DoString(entry);
246-
case (WORD)(INT_PTR)RT_FONTDIR:
246+
case 7: // RT_FONTDIR
247247
break;
248-
case (WORD)(INT_PTR)RT_FONT:
248+
case 8: // RT_FONT
249249
break;
250-
case (WORD)(INT_PTR)RT_ACCELERATOR:
250+
case 9: // RT_ACCELERATOR
251251
return DoAccel(entry);
252-
case (WORD)(INT_PTR)RT_RCDATA:
252+
case 10: // RT_RCDATA
253253
return DoText(entry);
254-
case (WORD)(INT_PTR)RT_MESSAGETABLE:
254+
case 11: // RT_MESSAGETABLE
255255
break;
256-
case (WORD)(INT_PTR)RT_GROUP_CURSOR:
256+
case 12: // RT_GROUP_CURSOR
257257
return DoGroupCursor(entry);
258-
case (WORD)(INT_PTR)RT_GROUP_ICON:
258+
case 14: // RT_GROUP_ICON
259259
return DoGroupIcon(entry);
260-
case (WORD)(INT_PTR)RT_VERSION:
260+
case 16: // RT_VERSION
261261
return DoVersion(entry);
262-
case (WORD)(INT_PTR)RT_DLGINCLUDE:
262+
case 17: // RT_DLGINCLUDE
263263
break;
264-
case (WORD)(INT_PTR)RT_PLUGPLAY:
264+
case 19: // RT_PLUGPLAY
265265
break;
266-
case (WORD)(INT_PTR)RT_VXD:
266+
case 20: // RT_VXD
267267
break;
268-
case (WORD)(INT_PTR)RT_ANICURSOR:
268+
case 21: // RT_ANICURSOR
269269
return DoAniCursor(entry);
270-
case (WORD)(INT_PTR)RT_ANIICON:
270+
case 22: // RT_ANIICON
271271
return DoAniIcon(entry);
272-
case (WORD)(INT_PTR)RT_HTML:
272+
case 23: // RT_HTML
273273
return DoText(entry);
274-
case (WORD)(INT_PTR)RT_MANIFEST:
274+
case 24: // RT_MANIFEST
275275
return DoText(entry);
276276
default:
277277
return DoText(entry);

0 commit comments

Comments
 (0)