hl2sdk icon indicating copy to clipboard operation
hl2sdk copied to clipboard

Update tier0 and vstdlib import libraries for Windows.

Open TheDS opened this issue 1 year ago • 0 comments

The 64-bit ones were previously importing by ordinal instead of name.

Unlike the similar PR for Blade Symphony, MM:S wasn't broken by this. But on the off chance that the corresponding DLLs are updated later, then importing by name is less likely to break.

Compare output of dumpbin -exports tier0.lib and note the name type field.

Before

  Version      : 0
  Machine      : 8664 (x64)
  TimeDateStamp: 5EEA290E Wed Jun 17 10:30:38 2020
  SizeOfData   : 0000000E
  DLL name     : tier0.dll
  Symbol name  : Msg
  Type         : code
  Name type    : ordinal
  Ordinal      : 382

After

  Version      : 0
  Machine      : 8664 (x64)
  TimeDateStamp: 62EF5CE5 Sun Aug  7 02:34:13 2022
  SizeOfData   : 0000000E
  DLL name     : tier0.dll
  Symbol name  : Msg
  Type         : code
  Name type    : name
  Hint         : 381
  Name         : Msg

Note: The 32-bit libs were already importing by name, but there were a few symbols that hadn't been added yet, so I figured it made sense to just go ahead and update them too.

TheDS avatar Aug 07 '22 07:08 TheDS