| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 #include "SkTypes.h" | 8 #include "SkTypes.h" |
| 9 #if defined(SK_BUILD_FOR_WIN32) | 9 #if defined(SK_BUILD_FOR_WIN32) |
| 10 | 10 |
| 11 #include "SkOSLibrary.h" | 11 #include "SkOSLibrary.h" |
| 12 #include <windows.h> | 12 #include <windows.h> |
| 13 | 13 |
| 14 void* DynamicLoadLibrary(const char* libraryName) { | 14 void* DynamicLoadLibrary(const char* libraryName) { |
| 15 return LoadLibrary(libraryName); | 15 return LoadLibraryA(libraryName); |
| 16 } | 16 } |
| 17 | 17 |
| 18 void* GetProcedureAddress(void* library, const char* functionName) { | 18 void* GetProcedureAddress(void* library, const char* functionName) { |
| 19 return ::GetProcAddress((HMODULE)library, functionName); | 19 return ::GetProcAddress((HMODULE)library, functionName); |
| 20 } | 20 } |
| 21 | 21 |
| 22 #endif//defined(SK_BUILD_FOR_WIN32) | 22 #endif//defined(SK_BUILD_FOR_WIN32) |
| OLD | NEW |