Skip to content

Commit b832d51

Browse files
author
Colin Robertson
authored
Merge pull request MicrosoftDocs#2613 from yury-fedorov/patch-2
Update afx-extension-module-structure_1.cpp - inaccurate initialisation of AFX_EXTENSION_MODULE structure
2 parents b66ea6b + 28c56da commit b832d51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/atl-mfc-shared/codesnippet/CPP/afx-extension-module-structure_1.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
static AFX_EXTENSION_MODULE NVC_MFC_DLLDLL = { NULL, NULL };
1+
static AFX_EXTENSION_MODULE NVC_MFC_DLLDLL;
22
extern "C" int APIENTRY
33
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
44
{
@@ -11,4 +11,4 @@ DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
1111

1212
// MFC extension DLL one-time initialization
1313
if (!AfxInitExtensionModule(NVC_MFC_DLLDLL, hInstance))
14-
return 0;
14+
return 0;

0 commit comments

Comments
 (0)