Make sure buffer is large enough for the nul terminator
[TortoiseGit.git] / src / TortoiseProc / stdafx.h
blob894abe769e5efb8fa9474ac0f3bd117ae7dc2575
1 // stdafx.h : include file for standard system include files,
2 // or project specific include files that are used frequently,
3 // but are changed infrequently
5 #pragma once
6 #define XMESSAGEBOX_APPREGPATH "Software\\TortoiseGit\\"
8 #include "..\targetver.h"
10 #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
12 // turns off MFC's hiding of some common and often safely ignored warning messages
13 #define _AFX_ALL_WARNINGS
15 #include <afxwin.h> // MFC core and standard components
16 #include <afxext.h> // MFC extensions
17 #include <WinSock2.h>
18 #include <Ws2tcpip.h>
19 #include <Wspiapi.h>
21 #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
22 #ifndef _AFX_NO_AFXCMN_SUPPORT
23 #include <afxcmn.h> // MFC support for Windows Common Controls
24 #endif // _AFX_NO_AFXCMN_SUPPORT
25 #include <afxdlgs.h>
26 #include <afxctl.h>
27 #include <afxtempl.h>
28 #include <afxmt.h>
29 #include <afxext.h> // MFC extensions
30 #include <afxcontrolbars.h> // MFC support for ribbons and control bars
32 #include <atlbase.h>
34 #pragma warning(push)
35 #pragma warning(disable: 4510 4610)
36 #include "git2.h"
37 #pragma warning(pop)
38 #include "SmartLibgit2Ref.h"
40 #include <string>
41 #include <vector>
42 #include <map>
43 #include <set>
44 #include <algorithm>
45 #include <functional>
47 #include <vfw.h>
48 #include <shlobj.h>
49 #include <Shlwapi.h>
50 #include <shlguid.h>
51 #include <uxtheme.h>
52 #include <dlgs.h>
53 #include <wininet.h>
54 #include <assert.h>
55 #include <math.h>
56 #include <gdiplus.h>
58 #define __WIN32__
61 #define USE_GDI_GRADIENT
62 #define HISTORYCOMBO_WITH_SYSIMAGELIST
64 #include "ProfilingInfo.h"
65 #include "DebugOutput.h"
66 #include <afxdhtml.h>
68 #ifdef _WIN64
69 # define APP_X64_STRING "x64"
70 #else
71 # define APP_X64_STRING ""
72 #endif