From 7f63eaafd640a0b93492e0383265dd8f38d568bc Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Wed, 16 Sep 2015 00:28:09 +0300 Subject: Fix T45389 Windows thumbnails not working. Also they did not work when using blender -R from command line in 64-bit systems. Issue was checking for wrong define which would cause code to detect if the blender executable functions under 32 bit emulation. For 64bit executables this is false, leading blender to believe we are operating under a 32bit system, and registration would try to register the 32bit thumbnailer. This 32 bit dll is (correctly) missing for local installs and from the new installer, thus no thumbnails. --- source/blender/blenlib/intern/winstuff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/blender/blenlib/intern/winstuff.c b/source/blender/blenlib/intern/winstuff.c index a67e116969e..32ab16b4b5a 100644 --- a/source/blender/blenlib/intern/winstuff.c +++ b/source/blender/blenlib/intern/winstuff.c @@ -93,7 +93,7 @@ void RegisterBlendExtension(void) char RegCmd[MAX_PATH * 2]; char MBox[256]; char *blender_app; -#ifndef WIN64 +#ifndef _WIN64 BOOL IsWOW64; #endif @@ -158,7 +158,7 @@ void RegisterBlendExtension(void) BLI_getInstallationDir(InstallDir); GetSystemDirectory(SysDir, FILE_MAXDIR); -#ifdef WIN64 +#ifdef _WIN64 ThumbHandlerDLL = "BlendThumb64.dll"; #elif defined(__MINGW32__) ThumbHandlerDLL = "BlendThumb.dll"; -- cgit v1.2.3