mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +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 );
|
||||
if( fwp->background != NULL )
|
||||
::DeleteObject( fwp->background );
|
||||
FlatLafWin32ProcessHeapDelete(fwp);
|
||||
FlatLafWin32ProcessHeapFree(fwp);
|
||||
}
|
||||
|
||||
void FlatWndProc::initIDs( JNIEnv *env, jobject obj ) {
|
||||
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
HWNDMap::HWNDMap() {
|
||||
size = 0;
|
||||
capacity = DEFAULT_CAPACITY;
|
||||
table = new Entry[capacity];
|
||||
table = new (FlatLafNoThrow) Entry[capacity];
|
||||
|
||||
::InitializeCriticalSection( &criticalSection );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user