mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 14:30:56 +03:00
flatlaf-natives-windows: fixed compile and link errors
This commit is contained in:
@@ -154,7 +154,7 @@ void FlatWndProc::uninstall( JNIEnv *env, jobject obj, HWND hwnd ) {
|
|||||||
env->DeleteGlobalRef( fwp->obj );
|
env->DeleteGlobalRef( fwp->obj );
|
||||||
if( fwp->background != NULL )
|
if( fwp->background != NULL )
|
||||||
::DeleteObject( fwp->background );
|
::DeleteObject( fwp->background );
|
||||||
FlatLafWin32ProcessHeapDelete(fwp);
|
FlatLafWin32ProcessHeapFree(fwp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FlatWndProc::initIDs( JNIEnv *env, jobject obj ) {
|
void FlatWndProc::initIDs( JNIEnv *env, jobject obj ) {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public:
|
|||||||
HWNDMap::HWNDMap() {
|
HWNDMap::HWNDMap() {
|
||||||
size = 0;
|
size = 0;
|
||||||
capacity = DEFAULT_CAPACITY;
|
capacity = DEFAULT_CAPACITY;
|
||||||
table = new Entry[capacity];
|
table = new (FlatLafNoThrow) Entry[capacity];
|
||||||
|
|
||||||
::InitializeCriticalSection( &criticalSection );
|
::InitializeCriticalSection( &criticalSection );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user