Skip to content

Commit

Permalink
Making it so that WindowFinder 0.2 automatically checks for update if…
Browse files Browse the repository at this point in the history
… not explicitly turned off via the ini file. Doing this so I can just upload it without zipping it first.
  • Loading branch information
stefansundin committed Sep 7, 2009
1 parent dc90325 commit 9f4c8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windowfinder.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPSTR szCmdLine, in
wchar_t path[MAX_PATH];
GetModuleFileName(NULL, path, sizeof(path)/sizeof(wchar_t));
PathRenameExtension(path, L".ini");
GetPrivateProfileString(L"Update", L"CheckForUpdate", L"0", txt, sizeof(txt)/sizeof(wchar_t), path);
GetPrivateProfileString(L"Update", L"CheckForUpdate", L"1", txt, sizeof(txt)/sizeof(wchar_t), path);
swscanf(txt, L"%d", &settings.CheckForUpdate);

//Create window class
Expand Down

0 comments on commit 9f4c8e4

Please sign in to comment.