Merged changes in the trunk up to revision 42116.
[blender.git] / source / blender / blenlib / intern / winstuff.c
index d3e989c28ae4b64b48656fc9696b2a205951db41..1b5bb60738623c07285b94b99e29dea173025156 100644 (file)
 #define WIN32_SKIP_HKEY_PROTECTION             // need to use HKEY
 #include "BLI_winstuff.h"
 
- /* FILE_MAXDIR + FILE_MAXFILE */
+ /* FILE_MAX */
 
 int BLI_getInstallationDir( char * str ) {
        char dir[FILE_MAXDIR];
        int a;
        
-       GetModuleFileName(NULL,str,FILE_MAXDIR+FILE_MAXFILE);
+       GetModuleFileName(NULL,str,FILE_MAX);
        BLI_split_dir_part(str, dir, sizeof(dir)); /* shouldn't be relative */
        a = strlen(dir);
        if(dir[a-1] == '\\') dir[a-1]=0;