Changeset 48d8e6bf030cbb4f64d8dafcd8587489c088bbf7

Show
Ignore:
Timestamp:
03/19/08 16:51:50 (2 months ago)
Author:
Sam Hocevar <sam@zoy.org>
git-committer:
Sam Hocevar <sam@zoy.org> 1205941910 +0000
git-parent:

[f351efa7d22645625d20204f86a44b194fde8352]

git-author:
Sam Hocevar <sam@zoy.org> 1205934837 +0000
Message:

Use LoadLibrary? instead of LoadLibraryA.

LoadLibrary? can either point to LoadLibraryA or LoadLibraryW depending
on the system and build options, so let's use LoadLibrary? everywhere
for consistency. Also, wrap static argument strings with _T() so that
they're automatically in the right format.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/misc/mtime.c

    r104802f r48d8e6b  
    226226            CPU frequency and active power management?) 
    227227        */ 
    228         HINSTANCE h_Kernel32 = LoadLibraryA("kernel32.dll"); 
     228        HINSTANCE h_Kernel32 = LoadLibrary(_T("kernel32.dll")); 
    229229        if(h_Kernel32) 
    230230        { 
    231231            void WINAPI (*pf_GetSystemInfo)(LPSYSTEM_INFO); 
    232232            pf_GetSystemInfo = (void WINAPI (*)(LPSYSTEM_INFO)) 
    233                                 GetProcAddress(h_Kernel32, "GetSystemInfo"); 
     233                                GetProcAddress(h_Kernel32, _T("GetSystemInfo")); 
    234234            if(pf_GetSystemInfo) 
    235235            { 
  • src/misc/threads.c

    rd9994e0 r48d8e6b  
    175175 
    176176            /* We are running on NT/2K/XP, we can use SignalObjectAndWait */ 
    177             hInstLib = LoadLibrary( "kernel32" ); 
     177            hInstLib = LoadLibrary(_T("kernel32")); 
    178178            if( hInstLib ) 
    179179            { 
    180180                pf_SignalObjectAndWait = 
    181181                    (SIGNALOBJECTANDWAIT)GetProcAddress( hInstLib, 
    182                                                      "SignalObjectAndWait" ); 
     182                                                  _T("SignalObjectAndWait") ); 
    183183            } 
    184184        }