[Bf-blender-cvs] [7f63eaa] master: Fix T45389 Windows thumbnails not working.

Antony Riakiotakis noreply at git.blender.org
Tue Sep 15 23:28:35 CEST 2015


Commit: 7f63eaafd640a0b93492e0383265dd8f38d568bc
Author: Antony Riakiotakis
Date:   Wed Sep 16 00:28:09 2015 +0300
Branches: master
https://developer.blender.org/rB7f63eaafd640a0b93492e0383265dd8f38d568bc

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.

===================================================================

M	source/blender/blenlib/intern/winstuff.c

===================================================================

diff --git a/source/blender/blenlib/intern/winstuff.c b/source/blender/blenlib/intern/winstuff.c
index a67e116..32ab16b 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";




More information about the Bf-blender-cvs mailing list