Skip to content

Commit

Permalink
GetModuleHandleA
Browse files Browse the repository at this point in the history
  • Loading branch information
otya128 committed Oct 5, 2015
1 parent 5aa2cd9 commit 579b60d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion krnl386/krnl386.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;KRNL386_EXPORTS;_X86_;__WINESRC__;__i386__;USE_COMPILER_EXCEPTIONS;HAVE_STRNCASECMP;HAVE__STRNICMP;_WINTERNL_;NtCurrentTeb=NtCurrentTeb__;inline=__inline;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;KRNL386_EXPORTS;_X86_;__WINESRC__;__i386__;USE_COMPILER_EXCEPTIONS;HAVE_STRNCASECMP;HAVE__STRNICMP;_WINTERNL_;NtCurrentTeb=NtCurrentTeb__;inline=__inline</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down
2 changes: 1 addition & 1 deletion krnl386/stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc)
{
static PConvertToGlobalHandle func = 0;
if (!func)
func = GetProcAddress(GetModuleHandle("kernel32.dll"), "ConvertToGlobalHandle");
func = GetProcAddress(GetModuleHandleA("kernel32.dll"), "ConvertToGlobalHandle");
if (!func)
{
DPRINTF("can't load kernel32!VerifyConsoleIoHandle\n");
Expand Down

0 comments on commit 579b60d

Please sign in to comment.