Skip to content
Snippets Groups Projects
Commit 6c7135c7 authored by deuce's avatar deuce
Browse files

Fix homedir() for Win32.

parent 129f7c26
No related branches found
No related tags found
No related merge requests found
#include "dirwrap.h"
#include "shlobj.h"
char HomeDir[MAX_PATH+1];
......@@ -14,10 +15,10 @@ char *homedir(void)
backslash(HomeDir);
strcat(HomeDir,"SyncTools/");
if(!isdir(HomeDir))
MKDIR(HomeDir)
MKDIR(HomeDir);
strcat(HomeDir,"SyncDraw/");
if(!isdir(HomeDir))
MKDIR(HomeDir)
MKDIR(HomeDir);
/* Really, why would I want a version in here? */
if(isdir(HomeDir))
return(HomeDir);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment