OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include <windows.h> | |
6 | |
7 static HINSTANCE g_saved_hinstance; | |
8 static DWORD g_saved_reason; | |
9 static LPVOID g_saved_reserved; | |
10 | |
cpu_(ooo_6.6-7.5)
2013/05/13 19:29:52
some comment here as well.
I might remove the st
scottmg
2013/05/13 20:00:11
Removed & simplified per discussion.
| |
11 extern "C" { | |
12 | |
13 BOOL WINAPI ChromeEmptyEntry(HINSTANCE hinstance, | |
14 DWORD reason, | |
15 LPVOID reserved) { | |
16 g_saved_hinstance = hinstance; | |
17 g_saved_reason = reason; | |
18 g_saved_reserved = reserved; | |
19 return 1; | |
20 } | |
21 | |
cpu_(ooo_6.6-7.5)
2013/05/13 19:29:52
is this function exported?
scottmg
2013/05/13 20:00:11
No, just public in the CRT libs.
| |
22 BOOL WINAPI _DllMainCRTStartup(HINSTANCE, DWORD, LPVOID); | |
23 | |
24 __declspec(dllexport) void __stdcall DoDeferredCrtInit() { | |
25 _DllMainCRTStartup(g_saved_hinstance, g_saved_reason, g_saved_reserved); | |
26 } | |
27 | |
28 int main() {} | |
29 | |
cpu_(ooo_6.6-7.5)
2013/05/13 19:29:52
why do we need main?
scottmg
2013/05/13 20:00:11
Added comment and __debugbreak.
| |
30 } | |
OLD | NEW |