From 7990ea24ee80e3e47d429804519666f5eb3badbb Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Fri, 24 Jul 2015 10:18:40 -0600 Subject: loader: Only check 32-bits for magic value The loaderMagic grew to be 64-bits to look better but need to mask it to 32bits for the validation check. --- include/vk_icd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/vk_icd.h b/include/vk_icd.h index 70c9f799..cea46be7 100644 --- a/include/vk_icd.h +++ b/include/vk_icd.h @@ -25,7 +25,7 @@ static inline void set_loader_magic_value(void* pNewObject) { static inline bool valid_loader_magic_value(void* pNewObject) { const VK_LOADER_DATA *loader_info = (VK_LOADER_DATA *) pNewObject; - return loader_info->loaderMagic == ICD_LOADER_MAGIC; + return (loader_info->loaderMagic & 0xffffffff) == ICD_LOADER_MAGIC; } #endif // VKICD_H -- cgit v1.2.3