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

Unified Diff: visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/hello_nacl.c

Issue 11191014: fix hello_nacl compile error (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/hello_nacl.c
diff --git a/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/hello_nacl.c b/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/hello_nacl.c
index c7d7340dedcc989a188308ddbaf72798a2eb8602..0f4b33b25b44ff43bf85b3bbd7a1e5a7918d2eea 100644
--- a/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/hello_nacl.c
+++ b/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/hello_nacl.c
@@ -111,7 +111,11 @@ void InitInstanceInBrowserWindow();
#ifdef STEP4
// Implements message handling in a callback function.
-void HelloWorldCallback(void* user_data, int32_t result) {
+void HelloWorldCallbackFun(void* user_data, int32_t result);
+struct PP_CompletionCallback HelloWorldCallback = {
+ HelloWorldCallbackFun, NULL };
+
+void HelloWorldCallbackFun(void* user_data, int32_t result) {
MSG uMsg;
if (PeekMessage(&uMsg, NULL, 0, 0, PM_REMOVE)) {
TranslateMessage(&uMsg);
@@ -119,8 +123,6 @@ void HelloWorldCallback(void* user_data, int32_t result) {
}
ppb_core_interface->CallOnMainThread(100, HelloWorldCallback, 0);
}
-
-struct PP_CompletionCallback HelloWorldCallback = { HelloWorldCallback, NULL };
#endif
#ifdef STEP2
@@ -372,7 +374,7 @@ int InitInstanceInPCWindow() {
return E_FAIL;
g_hWnd = CreateWindowEx(
- NULL, _T("MY_WINDOWS_CLASS"),
+ 0, _T("MY_WINDOWS_CLASS"),
_T("hello_nacl"), WS_OVERLAPPEDWINDOW,
0, 0, 640, 480, NULL, NULL, g_hInstance, NULL);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698