DXGL r445 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r444
|
r445
|
r446
>
Date:
17:41, 24 May 2014
Author:
admin
Status:
new
Tags:
Comment:
Fix mistake in version info detection.
Add memory leak debug support to dxglcfg.
Modified paths:
/dxglcfg/dxglcfg.c
(modified) (
history
)
Diff
[
purge
]
Index: dxglcfg/dxglcfg.c
—
—
@@ -18,6 +18,9 @@
19
19
#define _WIN32_WINNT 0x0600
20
20
#define _WIN32_IE 0x0300
21
21
#define _CRT_SECURE_NO_WARNINGS
22
+#define _CRTDBG_MAP_ALLOC
23
+#include <stdlib.h>
24
+#include <crtdbg.h>
22
25
#include <windows.h>
23
26
#include <HtmlHelp.h>
24
27
#include <CommCtrl.h>
—
—
@@ -786,7 +789,7 @@
787
790
if(VerQueryValue(verinfo,_T("\\VarFileInfo\\Translation"),(LPVOID*)&outbuffer,&outlen))
788
791
{
789
792
memcpy(translation,outbuffer,4);
790
- _sntprintf(verpath,64,_T("\\StringFileInfo\\%04x%04x\\"),translation[0],translation[1]);
793
+ _sntprintf(verpath,64,_T("\\StringFileInfo\\%04x%04x\\FileDescription"),translation[0],translation[1]);
791
794
if(VerQueryValue(verinfo,verpath,(LPVOID*)&outbuffer,&outlen))
792
795
{
793
796
hasname = TRUE;
—
—
@@ -1299,5 +1302,8 @@
1300
1303
GetDirFromPath(hlppath);
1301
1304
_tcscat(hlppath,_T("\\dxgl.chm"));
1302
1305
DialogBox(hInstance,MAKEINTRESOURCE(IDD_DXGLCFG),0,(DLGPROC)DXGLCfgCallback);
1306
+#ifdef _DEBUG
1307
+ _CrtDumpMemoryLeaks();
1308
+#endif
1303
1309
return 0;
1304
1310
}
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version