Changeset 48d8e6bf030cbb4f64d8dafcd8587489c088bbf7
- 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
| r104802f |
r48d8e6b |
|
| 226 | 226 | CPU frequency and active power management?) |
|---|
| 227 | 227 | */ |
|---|
| 228 | | HINSTANCE h_Kernel32 = LoadLibraryA("kernel32.dll"); |
|---|
| | 228 | HINSTANCE h_Kernel32 = LoadLibrary(_T("kernel32.dll")); |
|---|
| 229 | 229 | if(h_Kernel32) |
|---|
| 230 | 230 | { |
|---|
| 231 | 231 | void WINAPI (*pf_GetSystemInfo)(LPSYSTEM_INFO); |
|---|
| 232 | 232 | pf_GetSystemInfo = (void WINAPI (*)(LPSYSTEM_INFO)) |
|---|
| 233 | | GetProcAddress(h_Kernel32, "GetSystemInfo"); |
|---|
| | 233 | GetProcAddress(h_Kernel32, _T("GetSystemInfo")); |
|---|
| 234 | 234 | if(pf_GetSystemInfo) |
|---|
| 235 | 235 | { |
|---|
| rd9994e0 |
r48d8e6b |
|
| 175 | 175 | |
|---|
| 176 | 176 | /* We are running on NT/2K/XP, we can use SignalObjectAndWait */ |
|---|
| 177 | | hInstLib = LoadLibrary( "kernel32" ); |
|---|
| | 177 | hInstLib = LoadLibrary(_T("kernel32")); |
|---|
| 178 | 178 | if( hInstLib ) |
|---|
| 179 | 179 | { |
|---|
| 180 | 180 | pf_SignalObjectAndWait = |
|---|
| 181 | 181 | (SIGNALOBJECTANDWAIT)GetProcAddress( hInstLib, |
|---|
| 182 | | "SignalObjectAndWait" ); |
|---|
| | 182 | _T("SignalObjectAndWait") ); |
|---|
| 183 | 183 | } |
|---|
| 184 | 184 | } |
|---|