diff options
author | nyamatongwe <unknown> | 2007-03-11 22:45:57 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2007-03-11 22:45:57 +0000 |
commit | c90fc497844db8ceb43f334cae8680c26e1fced2 (patch) | |
tree | a59f51e46255f96136d9af60ded820c268595a31 | |
parent | f0f70d0f03187c31c36cb05730834b54fc559932 (diff) | |
download | scintilla-mirror-c90fc497844db8ceb43f334cae8680c26e1fced2.tar.gz |
Comments and formatting.
-rw-r--r-- | win32/PlatWin.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index b363fbda9..71114c27c 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1055,7 +1055,7 @@ struct ListItemData { }; #define _ROUND2(n,pow2) \ - ( ( (n) + (pow2) - 1) & ~((pow2) - 1) ) + ( ( (n) + (pow2) - 1) & ~((pow2) - 1) ) class LineToItem { char *words; @@ -1466,9 +1466,9 @@ void ListBoxX::AppendListItem(const char *startword, const char *numword) { if (numword) { int pixId = 0; char ch; - while ( (ch = *++numword) != '\0' ) { - pixId = 10 * pixId + (ch - '0'); - } + while ((ch = *++numword) != '\0') { + pixId = 10 * pixId + (ch - '0'); + } item->pixId = pixId; } else { item->pixId = -1; @@ -2032,7 +2032,7 @@ public: }; DynamicLibrary *DynamicLibrary::Load(const char *modulePath) { - return static_cast<DynamicLibrary *>( new DynamicLibraryImpl(modulePath) ); + return static_cast<DynamicLibrary *>(new DynamicLibraryImpl(modulePath)); } ColourDesired Platform::Chrome() { @@ -2163,6 +2163,8 @@ void Platform_Initialise(void *hInstance) { onNT = osv.dwPlatformId == VER_PLATFORM_WIN32_NT; ::InitializeCriticalSection(&crPlatformLock); hinstPlatformRes = reinterpret_cast<HINSTANCE>(hInstance); + // This may be called from DllMain, in which case the call to LoadLibrary and + // FreeLibrary in Platform_Finalise are bad because they can upset the DLL load order. if (!hDLLImage) { hDLLImage = ::LoadLibrary(TEXT("Msimg32")); } |