Check correct magic value in device dispatch table
authorCharles Giessen <charles@lunarg.com>
Fri, 15 Sep 2023 19:31:51 +0000 (13:31 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Fri, 15 Sep 2023 19:49:26 +0000 (13:49 -0600)
commit45b155b06a4bf3ae79873f4a67ad34b52486c226
treec877d9e36963edffe9b774efd6517d2f3b5c0bd0
parentd40385b1748ae5270fcab18c5aae1a2e5a301465
Check correct magic value in device dispatch table

The check for a correct magic value in the device dispatch table used
LOADER_MAGIC_NUMBER instead of DEVICE_DISP_TABLE_MAGIC_NUMBER. This causes
every device creation to emit the 'invalid magic value' message, which is
wrong. This commit fixes that, as well as adds the expected value to the
log message.
loader/loader.c
tests/loader_regression_tests.cpp