Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-09-16 00:28:09 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-09-16 00:28:09 +0300
commit7f63eaafd640a0b93492e0383265dd8f38d568bc (patch)
tree55fb52faec3de5dc4fa1ee5e240da36549d88d4d
parentb8a8059e21d2e28bf79b578d338f518c78a88382 (diff)
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.
-rw-r--r--source/blender/blenlib/intern/winstuff.c4
1 files changed, 2 insertions, 2 deletions
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";