Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: chrome/split_dll_fake_entry.cc

Issue 15067010: split_link tool, config, and scripts for windows build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698